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
geanux/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
sepehrpk/bot1
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
geanux/darkstar
scripts/globals/spells/bluemagic/uppercut.lua
28
1859
----------------------------------------- -- Spell: Uppercut -- Damage varies with TP -- Spell cost: 31 MP -- Monster Type: Plantoids -- Spell Type: Physical (Blunt) -- Blue Magic Points: 3 -- Stat Bonus: STR+2, DEX+1 -- Level: 38 -- Casting Time: 0.5 seconds -- Recast Time: 17.75 seconds -- Skillchain Eleme...
gpl-3.0
SirFrancisBillard/lua-projects
advanced_meth/lua/entities/aml_flask.lua
1
1912
AddCSLuaFile() ENT.Base = AML_CLASS_BASE ENT.PrintName = AML_NAME_FLASK ENT.Category = AML_SPAWN_CATEGORY ENT.Spawnable = AML_SPAWNABLE ENT.AdminSpawnable = AML_SPAWNABLE_ADMIN ENT.Model = AML_MODEL_FLASK function ENT:SetupDataTables() self:NetworkVar("Int", 0, "Fluid") end if SERVER then function ENT:Thin...
gpl-3.0
geanux/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Mainchelite.lua
21
5532
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Mainchelite -- @zone 80 -- @pos -16 1 -30 -- CS IDs: -- 0x005 = Generic Greeting for Iron Ram members -- 0x006 = Mid Initiation of other nation -- 0x007 = Ask player to Join Iron Rams -- 0x008 = Ask if changed mind about joining Iron ra...
gpl-3.0
focusworld/telemamall
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
sami2448/a
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
geanux/darkstar
scripts/zones/RuLude_Gardens/npcs/_6r8.lua
17
2384
----------------------------------- -- Area: Ru'Lud Gardens -- Door: Windurstian Ambassador -- Windurst Missions 3.3 "A New Journey" and 4.1 "Magicite" -- @pos 31 9 -22 243 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; package.loaded["scripts/globals/missions"...
gpl-3.0
sroccaserra/object-lua
test/TestPrototype.lua
2
1356
-- -- Tested with Lua 5.1.3 -- local Prototype = require 'objectlua.Prototype' local _G = _G module(...) ---- -- Testing initialization & delegatesTo function testInitializationAndDelegatesTo() local namedObject = Prototype:delegated() function namedObject:initialize(name) self.name = name end ...
mit
geanux/darkstar
scripts/globals/items/bowl_of_vegetable_broth.lua
35
1399
----------------------------------------- -- ID: 4323 -- Item: bowl_of_vegetable_broth -- Food Effect: 4Hrs, All Races ----------------------------------------- -- Vitality -1 -- Agility 5 -- Ranged Accuracy 6 -- HP Recovered While Healing 3 ----------------------------------------- require("scripts/globals...
gpl-3.0
tempbottle/luvit-websocket
lib/hixie76.lua
2
4600
-- -- http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76 -- local Utils = require('utils') local Crypto = require('_crypto') local Bit = require('bit') local band, bor, bxor, rshift, lshift = Bit.band, Bit.bor, Bit.bxor, Bit.rshift, Bit.lshift local String = require('string') local sub, gsub, match, byte...
mit
AliNiestani/ADMIN
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
geanux/darkstar
scripts/zones/Bastok_Markets/npcs/Oggodett.lua
36
1630
----------------------------------- -- Area: Bastok Markets -- NPC: Oggodett -- Only sells when Bastok controlls Aragoneu Region -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); packa...
gpl-3.0
evilexecutable/ResourceKeeper
install/Lua/share/zerobranestudio/src/editor/autocomplete.lua
1
14461
-- authors: Luxinia Dev (Eike Decker & Christoph Kubisch) --------------------------------------------------------- local ide = ide local statusBar = ide.frame.statusBar -- api loading depends on Lua interpreter -- and loaded specs ------------ -- API local function newAPI(api) api = api or {} for i in pairs(api...
gpl-2.0
forward619/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
geanux/darkstar
scripts/globals/effects/dex_down.lua
18
1089
----------------------------------- -- -- EFFECT_DEX_DOWN -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if ((target:getStat(MOD_DEX) - effec...
gpl-3.0
jiangzhhhh/slua
jit/jit/v.lua
54
5783
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
371816210/vlc_vlc
share/lua/playlist/bbc_co_uk.lua
112
1468
--[[ $Id$ Copyright © 2008 the VideoLAN team Authors: Dominique Leuenberger <dominique-vlc.suse@leuenberger.net> 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 Licens...
gpl-2.0
mistachkin/packages
net/luci-app-clamav/files/model/cbi/clamav-cbi.lua
100
6776
--[[ LuCI ClamAV module Copyright (C) 2015, Itus Networks, Inc. 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 Author: Marko Ratkaj <marko.ratkaj@sar...
gpl-2.0
kaen/Zero-K
units/chicken_tiamat.lua
4
9070
unitDef = { unitname = [[chicken_tiamat]], name = [[Tiamat]], description = [[Heavy Assault/Riot]], acceleration = 0.36, autoheal = 20, brakeRate = 0.205, buildCostEnergy = 0, buildCostMetal = 0, builder = false, buil...
gpl-2.0
aqasaeed/sparta4
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
geanux/darkstar
scripts/zones/Windurst_Woods/npcs/Etsa_Rhuyuli.lua
38
1415
----------------------------------- -- Area: Windurst Woods -- NPC: Etsa Rhuyuli -- Type: Standard NPC -- @pos 62.482 -8.499 -139.836 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/globals/items/blackened_frog.lua
3
1614
----------------------------------------- -- ID: 4536 -- Item: Blackened Frog -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 2 -- Agility 2 -- Mind -2 -- Attack % 14 -- Attack Cap 60 -- Ranged ATT % 14 -- Ranged ATT Cap 60 -- Enmity -5 ----------------------------------------- ...
gpl-3.0
mohammadrezatitan/parsol
plugins/write.lua
2
28812
--edit By @mohammadrezajiji function string:split(sep) local sep, fields = sep or ":", {} local pattern = string.format("([^%s]+)", sep) self:gsub(pattern, function(c) fields[#fields+1] = c end) return fields end local function run(msg, matches) if #matches < 2 then return "بعد از این دستور، با قید یک فاصل...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Aht_Urhgan_Whitegate/npcs/Isdebaaq.lua
2
1060
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Isdebaaq -- Type: Assault Mission Giver -- @zone: 50 -- @pos: 127.565 0.161 -43.846 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextID...
gpl-3.0
ketoo/NoahGameFrame
_Out/NFDataCfg/ScriptModule/NFScriptEnum.lua
2
1052
function CreatEnumTable(tbl, index) local enumtbl = {} local enumindex = index or 0 for i, v in ipairs(tbl) do enumtbl[v] = enumindex + i end return enumtbl end ObjectEvent = { "COE_CREATE_NODATA", "COE_CREATE_BEFORE_ATTACHDATA", "COE_CREATE_LOADDATA", "COE_CREATE_AFT...
apache-2.0
premake/premake-core
modules/android/tests/test_android_project.lua
1
4274
local p = premake local suite = test.declare("test_android_project") local vc2010 = p.vstudio.vc2010 local android = p.modules.android -- -- Setup -- local wks, prj function suite.setup() p.action.set("vs2015") system "android" wks, prj = test.createWorkspace() end local function prepare() local cf...
bsd-3-clause
Sonicrich05/FFXI-Server
scripts/globals/spells/bluemagic/power_attack.lua
28
1761
----------------------------------------- -- Spell: Power Attack -- Deals critical damage. Chance of critical hit varies with TP -- Spell cost: 5 MP -- Monster Type: Vermin -- Spell Type: Physical (Blunt) -- Blue Magic Points: 1 -- Stat Bonus: MND+1 -- Level: 4 -- Casting Time: 0.5 seconds -- Recast Time: 7.2...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Eastern_Altepa_Desert/npcs/Eulaclaire.lua
2
1298
----------------------------------- -- Area: Eastern Altepa Desert -- NPC: Eulaclaire -- Chocobo Vendor ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); ----------------------------------- -- onTrade Action ----------------------------------- function onT...
gpl-3.0
DiNaSoR/Angel_Arena
game/angel_arena/scripts/vscripts/hero/hero_alchemist.lua
1
59524
--[[ Author: Hewdraw ]] CreateEmptyTalents("alchemist") local LinkedModifiers = {} local chemical_rage_reference = nil function getChemicalRageDummyReference() if IsServer() and _reference == nil then local alchemist_dummy = CreateUnitByName('npc_dummy_unit', Vector(0,0,0), false, nil, nil, DOTA_TEAM_NOTEAM )...
mit
bright-things/ionic-luci
applications/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua
56
3828
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("upnpd", luci.util.pcdata(translate("Universal Plug & Play")), translate("UPnP allows clients in the local network to automatically configure the...
apache-2.0
Fatmice/Uranium-Power-Cont
prototypes/entity/fission-reactor-steam-generator-internals.lua
1
11636
data:extend( { { type = "storage-tank", name = "steam-generator-01-cold-input", icon = "__UraniumPower__/graphics/entity/test-pipe/test-pipe-c.png", flags = {"placeable-neutral", "placeable-player", "not-blueprintable", "not-deconstructable"}, minable = {hardness = 0.2, mining_time = 0.5}, max_health = 50,...
mit
SimCMinMax/EasyRaid
HeroRotation_Monk/Mistweaver.lua
1
13949
--- ============================ HEADER ============================ --- ======= LOCALIZE ======= -- Addon local addonName, addonTable = ...; -- HeroDBC local DBC = HeroDBC.DBC -- HeroLib local HL = HeroLib local Cache = HeroCache local Unit = HL.Unit local Player = Unit.Player local Targe...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/globals/spells/cryohelix.lua
22
1674
-------------------------------------- -- Spell: Cryohelix -- Deals ice 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
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Yhoator_Jungle/npcs/Telepoint.lua
2
1561
----------------------------------- -- Area: Yhoator Jungle -- NPC: Telepoint ----------------------------------- package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Yhoator_Jungle/TextIDs"); -------------------...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/globals/mobskills/Acrid_Stream.lua
25
1024
--------------------------------------------- -- Acrid Stream -- -- Description: Deals water damage to enemies within a fan-shaped area originating from the caster. Additional effect: Lowers target's Magic Defense. -- Type: Magical (Water) -- -- --------------------------------------------- require("scripts/...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/globals/spells/foe_requiem_v.lua
18
1624
----------------------------------------- -- Spell: Foe Requiem V ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Yhoator_Jungle/TextIDs.lua
4
1432
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6383; -- Obtained: <item>. GIL_OBTAINED = 6384; -- Obtained <number> gil. KEYITEM_OBTAINED = 6386; -- Obtained...
gpl-3.0
Sornii/pureviolence
data/migrations/8.lua
57
3350
function onUpdateDatabase() print("> Updating database to version 9 (global inbox)") db.query("CREATE TABLE IF NOT EXISTS `player_inboxitems` (`player_id` int(11) NOT NULL, `sid` int(11) NOT NULL, `pid` int(11) NOT NULL DEFAULT '0', `itemtype` smallint(6) NOT NULL, `count` smallint(5) NOT NULL DEFAULT '0', `attribute...
gpl-2.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Dynamis-Xarcabard/mobs/Animated_Hammer.lua
2
1292
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Animated_Hammer ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onMobInitialize Action ----------------------------------- function onMobInitialize(mob,target) mob:addMod(MOD_STUNRES...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/globals/items/burning_cesti.lua
16
1030
----------------------------------------- -- ID: 16398 -- Item: Burning Cesti -- Additional Effect: Fire Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ------------------------------...
gpl-3.0
kyroskoh/kong
kong/tools/migrations.lua
3
5117
local utils = require "kong.tools.utils" local Object = require "classic" local Migrations = Object:extend() -- Instanciate a migrations runner. -- @param `core_migrations` (Optional) If specified, will use those migrations for core instead of the real ones (for testing). -- @param `plugins_namespace` (Optional) If s...
apache-2.0
Sonicrich05/FFXI-Server
scripts/zones/Selbina/npcs/Zaldon.lua
24
71053
----------------------------------- -- Area: Selbina -- NPC: Zaldon -- Involved in Quests: Under the sea, A Boy's Dream -- Starts and Finishes: Inside the Belly -- @pos -13 -7 -5 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Northern_San_dOria/TextIDs.lua
2
7001
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6564; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6567; -- Obtained: <item> GIL_OBTAINED = 6568; -- Obtained <number> gil KEYITEM_OBTAINED = 6570; -- Ob...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/globals/weaponskills/aeolian_edge.lua
4
1272
-- Aeolian Edge -- Dagger weapon skill -- Delivers an area attack that deals wind elemental damage. Damage varies with TP. -- Skill Level: 290 -- Aligned with the Breeze Gorget, Soil Gorget & Thunder Gorget. -- Aligned with the Breeze Belt, Soil Belt & Thunder Belt. -- Element: Wind -- Skillchain Properties: Impact...
gpl-3.0
MiaoMiaosha/Cocos
SampleFlashImport/cocos2d/cocos/scripting/lua/script/DeprecatedClass.lua
1
75410
-- This is the DeprecatedClass DeprecatedClass = {} or DeprecatedClass --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --CCProgressTo class will be Deprecated,begin function DeprecatedClass.CCProgres...
mit
projectbismark/luci-bismark
modules/admin-mini/luasrc/model/cbi/mini/luci.lua
81
1335
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
apache-2.0
Themroc/luasocket
src/ftp.lua
144
9120
----------------------------------------------------------------------------- -- FTP support for the Lua language -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: ftp.lua,v 1.45 2007/07/11 19:25:47 diego Exp $ ----------------------------------------------------------------------------- -------------------...
mit
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Metalworks/npcs/Raibaht.lua
2
2648
----------------------------------- -- Area: Metalworks -- NPC: Raibaht -- Starts and Finishes Quest: Dark Legacy -- Involved in Quest: The Usual, Riding on the Clouds -- @zone 237 -- @pos -27 -10 -1 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; -------------------------...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/globals/spells/phalanx_ii.lua
25
1173
----------------------------------------- -- Spell: PHALANX -- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point -- Phalanx II value per point is '3' This is a constant set in the table 'merits' ----------------------------------------- require("scripts/globa...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Windurst_Waters_[S]/npcs/Scotwick.lua
38
1066
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Scotwick -- Type: Allied Notes Notorious Monsters -- @zone: 94 -- @pos 153.785 -3.134 9.895 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/...
gpl-3.0
everslick/awesome
lib/gears/surface.lua
3
3355
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2012 Uli Schlachter -- @release @AWESOME_VERSION@ -- @module gears.surface --------------------------------------------------------------------------- local setmetatable = setmetatable local type = type ...
gpl-2.0
Sonicrich05/FFXI-Server
scripts/zones/Northern_San_dOria/npcs/Beadurinc.lua
53
1875
----------------------------------- -- Area: Northern San d'Oria -- NPC: Beadurinc -- Type: Smithing Synthesis Image Support -- @pos -182.300 10.999 146.650 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Open_sea_route_to_Mhaura/Zone.lua
34
1477
----------------------------------- -- -- Zone: Open_sea_route_to_Mhaura (47) -- ----------------------------------- package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Open_sea_route_to_Mhaura/TextIDs"); ----------------------...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/The_Shrine_of_RuAvitau/mobs/Seiryu.lua
27
1101
----------------------------------- -- Area: Ru'Aun Gardens -- NPC: Seiryu (Pet version) ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; ------------------...
gpl-3.0
nrodriguez/SpellGainz
libs/DataStore/libs/LibAboutPanel/libs/LibStub/tests/test.lua
10
2053
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy assert(lib) -- should return the library table assert(not oldMinor) -- should not return the old minor, since it didn't exist -- the following is to cre...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/globals/utils.lua
2
4393
utils = {}; function utils.clamp(input, min_val, max_val) if input < min_val then input = min_val; elseif input > max_val then input = max_val; end return input; end; function utils.stoneskin(target, dmg) --handling stoneskin skin = target:getMod(MOD_STONESKIN); if(skin > ...
gpl-3.0
Servius/tfa-sw-weapons-repository
Backups_Reworks/tfa_battlefront1&2_weapons/lua/weapons/tfa_battlefront_republicsnip/shared.lua
1
4823
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if ( CLIENT ) then SWEP.PrintName = "RSR DC-15x Sniper Rifle" SWEP.Author = "TFA, Servius" SWEP.ViewModelFOV = 70 SWEP.Slot = 2 SWEP.SlotPos = 3 end SWEP.HoldType = "ar2" SWEP.Base = "tfa_3dscoped_base" SWEP.Category = "TFA Star Wars" S...
apache-2.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/globals/spells/cure.lua
2
3702
----------------------------------------- -- Spell: Cure -- Restores target's HP. -- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ...
gpl-3.0
AdUki/Grapedit
scripts/libs/lpeglj/lpcap.lua
1
18412
--[[ LPEGLJ lpcap.lua Capture functions Copyright (C) 2013 Rostislav Sacek. based on LPeg v0.12 - PEG pattern matching for Lua Lua.org & PUC-Rio written by Roberto Ierusalimschy http://www.inf.puc-rio.br/~roberto/lpeg/ ** Permission is hereby granted, free of charge, to any person obtaining ** a copy of this software...
mit
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/The_Eldieme_Necropolis/npcs/_5fo.lua
2
2330
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: North Plate -- @zone 195 -- @pos 174 -32 50 -- 17576327 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -----------------...
gpl-3.0
mandrav/moai_pex_editor
src/hp/manager/SoundManager.lua
1
1241
---------------------------------------------------------------- -- This is a class to manage the MOAIUntzSound. ---------------------------------------------------------------- local ResourceManager = require("hp/manager/ResourceManager") local M = {} local cache = {} M.initialized = false function M:initialize() ...
mit
SnakeSVx/spacebuild
lua/caf/stools/ls3_other.lua
4
2503
TOOL.Category = "Life Support" TOOL.Name = "#Special Devices" TOOL.DeviceName = "Special Device" TOOL.DeviceNamePlural = "Special Devices" TOOL.ClassName = "ls3_other" TOOL.DevSelect = true TOOL.CCVar_type = "other_screen" TOOL.CCVar_sub_type = "Small" TOOL.CCVar_model = "models/SnakeSVx/small_screen_ls_1.mdl" TOOL....
apache-2.0
DiNaSoR/Angel_Arena
game/angel_arena/scripts/vscripts/heroes/hero_scawmar/mind_control.lua
1
5706
function MindControlAdd( keys ) local caster = keys.caster local ability = keys.ability local target = keys.target if target:TriggerSpellAbsorb(ability) then RemoveLinkens(target) return end local duration = ability:GetLevelSpecialValueFor("duration", ability:GetLevel() - 1) enemyTeam = target:GetTeamNumbe...
mit
Sonicrich05/FFXI-Server
scripts/globals/mobskills/Pile_Pitch.lua
17
1246
--------------------------------------------------- -- Guided_Missile -- -- Description: Reduces target's HP to 5% of its maximum value, ignores Utsusemi ,Bind (30 sec) -- Type: Magical -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status")...
gpl-3.0
RavenX8/osIROSE-new
scripts/mobs/ai/grunter_captain.lua
2
1951
registerNpc(139, { walk_speed = 230, run_speed = 700, scale = 160, r_weapon = 135, l_weapon = 0, level = 55, hp = 45, attack = 283, hit = 158, def = 176, res = 114, avoid ...
apache-2.0
RavenX8/osIROSE-new
scripts/npcs/ai/[referee]_leum.lua
2
1069
registerNpc(1113, { walk_speed = 0, run_speed = 0, scale = 120, r_weapon = 162, l_weapon = 0, level = 10, hp = 100, attack = 100, hit = 100, def = 100, res = 100, avoid ...
apache-2.0
premake/premake-core
modules/vstudio/vs2010_vcxproj.lua
1
77590
-- -- vs2010_vcxproj.lua -- Generate a Visual Studio 201x C/C++ project. -- Copyright (c) Jason Perkins and the Premake project -- local p = premake p.vstudio.vc2010 = {} local vstudio = p.vstudio local project = p.project local config = p.config local fileconfig = p.fileconfig local tree = p.tree local m = ...
bsd-3-clause
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/commands/godmode.lua
2
1260
----------------------------------- -- [Command name]: godmode -- [Author ]: bluekirby0 -- [Description ]: Grants the user several special abilities that may aid in testing, or just plain showing off. ----------------------------------- ----------------------------------- -- Action -------------------------------...
gpl-3.0
FelixPe/nodemcu-firmware
lua_examples/pipeutils.lua
6
2213
-- A collection of pipe-based utility functions -- A convenience wrapper for chunking data arriving in bursts into more sizable -- blocks; `o` will be called once per chunk. The `flush` method can be used to -- drain the internal buffer. `flush` MUST be called at the end of the stream, -- **even if the stream is a m...
mit
Sonicrich05/FFXI-Server
scripts/zones/Rabao/npcs/Dancing_Wolf.lua
19
1645
----------------------------------- -- Area: Rabao -- NPC: Dancing Wolf -- Type: Standard NPC -- @zone: 247 -- @pos 7.619 7 81.209 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; -------------------------------...
gpl-3.0
premake/premake-core
modules/vstudio/tests/sln2005/test_sections.lua
16
1081
-- -- tests/actions/vstudio/sln2005/test_sections.lua -- Validate generation of Visual Studio 2005+ solution section entries. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_sln2005_sections") local sln2005 = p.vstudio.sln2005 -- -- Setup -...
bsd-3-clause
Dual-Boxing/Jamba
Locales/JambaMessage-Locale-enUS.lua
1
1849
--[[ Jamba - Jafula's Awesome Multi-Boxer Assistant Copyright 2008 - 2015 Michael "Jafula" Miller License: The MIT License ]]-- local L = LibStub("AceLocale-3.0"):NewLocale( "Jamba-Message", "enUS", true ) L["Slash Commands"] = true L["Advanced"] = true L["Core: Message Display"] = true L["Push Settings"] = true L["Pu...
mit
RavenX8/osIROSE-new
scripts/mobs/fields/JD03.lua
2
6216
--[[ MOB SPAWN LIST mob(<mob_spawner_alias>, <mob_id>, <mob_count>, <spawner_limit>, <spawn_interval>, <spawner_range>, <map_id>, <x_pos>, <y_pos>, <z_pos>); --]] mob("", 762, 1, 1, 7, 5, 28, 5063.71, 5513.39, 47.56); mob("", 762, 1, 1, 7, 5, 28, 5040.72, 5494.72, 45.31); mob("", 165, 1, 1, 14, 20, 28, 5253.17, 5442....
apache-2.0
Servius/tfa-sw-weapons-repository
Backups_Reworks/tfa_swrp_shared_old/lua/tfa_starwars/menu/server.lua
2
1396
if SERVER then AddCSLuaFile() util.AddNetworkString("ThirdOTSPacket") util.AddNetworkString("ThirdOTSReq") net.Receive("ThirdOTSReq", function(len, ply) local t = net.ReadBool() local state = net.ReadBool() if t then ply:SetNW2Bool("ThirtOTS", state) else ply:SetNW2Bool("ThirtOTS_SStatus"...
apache-2.0
Sonicrich05/FFXI-Server
scripts/zones/Bastok_Markets/npcs/Zacc.lua
31
1547
----------------------------------- -- Area: Bastok Markets -- NPC: Zacc -- Type: Quest NPC -- @zone: 235 -- @pos -255.709 -13 -91.379 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; require("scripts/zones/Bastok_Markets/TextIDs"); require("scripts/globals/quests...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Port_Windurst/npcs/Machu-Kuchu.lua
34
1123
----------------------------------- -- Area: Port Windurst -- Machu-Kuchu -- Warps players to Windurst Walls ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_Windurst/TextIDs"); ------------------...
gpl-3.0
DiNaSoR/Angel_Arena
game/angel_arena/scripts/vscripts/internal/eventtest.lua
21
59645
function GameMode:StartEventTest() ListenToGameEvent("team_info", Dynamic_Wrap(GameMode, 'On_team_info'), self) ListenToGameEvent("team_score", Dynamic_Wrap(GameMode, 'On_team_score'), self) ListenToGameEvent("teamplay_broadcast_audio", Dynamic_Wrap(GameMode, 'On_teamplay_broadcast_audio'), self) ListenToGameEvent(...
mit
RavenX8/osIROSE-new
scripts/mobs/ai/moon_brother_dagaz.lua
2
1072
registerNpc(653, { walk_speed = 450, run_speed = 850, scale = 650, r_weapon = 0, l_weapon = 0, level = 159, hp = 44, attack = 817, hit = 333, def = 500, res = 424, avoid ...
apache-2.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Lower_Jeuno/npcs/Navisse.lua
2
4693
----------------------------------- -- Area: Lower Jeuno -- NPC: Navisse -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); require("scripts/globals/pathfind"); path = { -- -59.562683, 6.000051, -90.890404, ...
gpl-3.0
RavenX8/osIROSE-new
scripts/mobs/fields/LP03.lua
2
14478
--[[ MOB SPAWN LIST mob(<mob_spawner_alias>, <mob_id>, <mob_count>, <spawner_limit>, <spawn_interval>, <spawner_range>, <map_id>, <x_pos>, <y_pos>, <z_pos>); --]] mob("", 384, 1, 1, 45, 5, 54, 5108.27, 5309.37, 36.24); mob("", 384, 1, 1, 45, 5, 54, 5114.2, 5313.25, 35.8); mob("", 384, 1, 1, 45, 5, 54, 5118.48, 5322.3...
apache-2.0
Sonicrich05/FFXI-Server
scripts/zones/Ranguemont_Pass/npcs/Waters_of_Oblivion.lua
17
2199
----------------------------------- -- Area: Ranguemont Pass -- NPC: Waters of Oblivion -- Finish Quest: Painful Memory (BARD AF1) -- @pos -284 -45 210 166 ----------------------------------- package.loaded["scripts/zones/Ranguemont_Pass/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; ------...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/globals/abilities/pets/healing_breath_iii.lua
4
3110
--------------------------------------------------- -- Healing Breath III --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); require("/scripts/globals/monstertpmoves"); --------------------------------------------------- function OnAbilityChe...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/globals/spells/banishga_iii.lua
2
1062
----------------------------------------- -- Spell: Banishga 3 -- Deals light damage to an enemy. ----------------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function ...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Temple_of_Uggalepih/npcs/_4fz.lua
2
1381
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Granite Door -- Leads to painbrush room @ F-7 -- @pos 60 0 8 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); requ...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/globals/mobskills/Bloodrake.lua
2
1075
--------------------------------------------- -- Bloodrake -- -- Description: Slashes up a single target. Additional effect: Drain -- Type: Physical -- Utsusemi/Blink absorb: 1 shadow? -- Range: Melee -- Notes: A spell equivalent to Sanguine Blade in terms of functionality where damage dealt is absorbed as health...
gpl-3.0
fruitwasp/DarkRP
gamemode/modules/fpp/pp/server/antispam.lua
2
7449
FPP = FPP or {} FPP.AntiSpam = FPP.AntiSpam or {} function FPP.AntiSpam.GhostFreeze(ent, phys) ent:SetRenderMode(RENDERMODE_TRANSALPHA) ent:DrawShadow(false) ent.OldColor = ent.OldColor or ent:GetColor() ent.StartPos = ent:GetPos() ent:SetColor(Color(ent.OldColor.r, ent.OldColor.g, ent.OldColor.b, ...
mit
Servius/tfa-sw-weapons-repository
Live Addons/servius_uploader/[TFA][AT] Expanded Pack/lua/weapons/tfa_dc17chrome/shared.lua
1
5796
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if ( CLIENT ) then SWEP.PrintName = "DC-17: Chrome" SWEP.Author = "TFA, Servius" SWEP.ViewModelFOV = 50 SWEP.Slot = 2 SWEP.SlotPos = 3 end SWEP.Base = "tfa_swsft_base_servius" SWEP.Category = "TFA Star Wars" SWEP.Spawnable = true SWEP.A...
apache-2.0
Sonicrich05/FFXI-Server
scripts/zones/Dynamis-Xarcabard/mobs/King_Zagan.lua
16
1254
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: King Zagan ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function o...
gpl-3.0
apetrone/1GAM-2013
game/screens/help.lua
1
2161
require "core" HelpScreen = class("HelpScreen", Screen) function HelpScreen:initialize( params ) Screen.initialize(self, params) self.keys = love.graphics.newImage( "assets/help.png" ) self.player = nil end function HelpScreen:onShow( params ) self.player = params.gamerules.entity_factory:createClass( "Playe...
mit
patverga/torch-relation-extraction
bin/process/PoolTestData.lua
1
2392
-- -- User: pat -- Date: 2/10/16 -- require 'nn' local cmd = torch.CmdLine() cmd:option('-inFile', '', 'input file') cmd:option('-keyFile', '', 'file that maps entity pairs to relations') cmd:option('-outFile', '', 'out file') local params = cmd:parse(arg) -- load key file int map print('Loading ep-rel map from ' ....
mit
RavenX8/osIROSE-new
scripts/mobs/ai/tyrant.lua
2
1956
registerNpc(357, { walk_speed = 230, run_speed = 800, scale = 220, r_weapon = 1024, l_weapon = 0, level = 112, hp = 36, attack = 526, hit = 248, def = 647, res = 261, avoi...
apache-2.0
d909b/GADEL-Snake
Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-config.lua
10
3559
require 'pl' asserteq = require 'pl.test'.asserteq function testconfig(test,tbl,cfg) local f = stringio.open(test) local c = config.read(f,cfg) f:close() if not tbl then print(pretty.write(c)) else asserteq(c,tbl) end end testconfig ([[ ; comment 2 (an ini file) [section!] bon...
bsd-3-clause
Sonicrich05/FFXI-Server
scripts/zones/Upper_Jeuno/npcs/Renik.lua
34
1376
----------------------------------- -- Area: Upper Jeuno -- NPC: Renik -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Upper_Jeuno/TextIDs"); require("scripts/globals/quests"); ---...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Lebros_Cavern/IDs.lua
67
1719
Lebros = { text = { -- General Texts ITEM_CANNOT_BE_OBTAINED = 6376, -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6379, -- Obtained: <item> GIL_OBTAINED = 6380, -- Obtained <number> gil KEYITEM_OBTAINED = 6382, -- Obtained...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Tavnazian_Safehold/npcs/Quelveuiat.lua
34
2668
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Quelveuiat -- Standard Info NPC -- @pos -3.177 -22.750 -25.970 26 ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests");...
gpl-3.0
nimaghorbani/newbot
plugins/Member_Moderator.lua
20
10430
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) local group_creator = msg.from.print_name create_group_chat (group_creator, group_name, ok_cb, false) return 'Group '..string.gsub(group_name, '...
gpl-2.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Port_San_dOria/npcs/Deguerendars.lua
6
1975
----------------------------------- -- Area: Port San d'Oria -- NPC: Deguerendars -- Only sells when San d'Oria contrls Tavnazian Archipelago -- Only available to those with CoP Ch. 4.1 or higher ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; -------------------------...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Northern_San_dOria/npcs/Maurinne.lua
38
1026
----------------------------------- -- Area: Northern San d'Oria -- NPC: Maurinne -- Type: Standard Dialogue NPC -- @zone: 231 -- @pos -127.185 0.000 179.193 -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/zones/Northern_San_dOria/TextIDs")...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Quicksand_Caves/TextIDs.lua
4
1486
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6383; -- Obtained: <item> GIL_OBTAINED = 6384; -- Obtained <number> gil KEYITEM_OBTAINED = 6386; -- Obtain...
gpl-3.0