repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
Fenix-XI/Fenix
scripts/globals/effects/vit_down.lua
34
1112
----------------------------------- -- -- EFFECT_VIT_DOWN -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if ((target:getStat(MOD_VIT) - effect:ge...
gpl-3.0
mrbangi/hkrbot
plugins/stats.lua
6
4000
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
Fenix-XI/Fenix
scripts/zones/Bastok_Mines/npcs/Davyad.lua
13
1177
----------------------------------- -- Area: Bastok Mines -- NPC: Davyad -- Involved in Mission: Bastok 3-2 -- @zone 234 -- @pos 83 0 30 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scri...
gpl-3.0
Swizzy/ESOCraftExport
CraftExport/CraftExport.lua
1
19326
CraftExportAddon = {} CraftExportAddon.Name = "CraftExport" CraftExportAddon.AddonID = "craftexport" CraftExportAddon.ArmorTraits = { Divines = 8, Exploration = 7, Impenetrable = 2, Infused = 6, Reinforced = 3, Sturdy = 1, Training = 5, WellFitted = 4 } CraftExportAddon.WeaponTraits = { Charged = 2, Defending...
unlicense
Fenix-XI/Fenix
scripts/zones/Bastok_Markets/npcs/Svana.lua
59
1040
----------------------------------- -- Area: Bastok Markets -- NPC: Svana -- Type: Weather Reporter ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Bastok_Markets/TextIDs");...
gpl-3.0
Fenix-XI/Fenix
scripts/globals/effects/field_support_food.lua
33
3130
----------------------------------- -- -- EFFECT_FIELD_SUPPORT_FOOD -- From FoV and GoV ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if (effect:getPower() == 1) then -- Dried Meat tar...
gpl-3.0
spamn/lain
widget/contrib/tpbat/smapi.lua
3
2968
--[[ smapi.lua Interface with thinkpad battery information Licensed under GNU General Public License v2 * (c) 2013, Conor Heine --]] local first_line = require("lain.helpers").first_line local string = { format = string.format } local tonumber = tonumber local setmetatable = setmet...
gpl-2.0
Fenix-XI/Fenix
scripts/zones/Ship_bound_for_Selbina/npcs/Rajmonda.lua
13
1190
----------------------------------- -- Area: Ship bound for Selbina -- NPC: Rajmonda -- Type: Guild Merchant: Fishing Guild -- @pos 1.841 -2.101 -9.000 220 ----------------------------------- package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
joshuarome/Tilemap-Based-Game
sti/plugins/box2d.lua
4
7659
--- Box2D plugin for STI -- @module box2d -- @author Landon Manning -- @copyright 2016 -- @license MIT/X11 local path = ... local utils = require(path .. "utils") return { box2d_LICENSE = "MIT/X11", box2d_URL = "https://github.com/karai17/Simple-Tiled-Implementation", box2d_VERSION = "2.3.2.4", b...
mit
jmachuca77/ardupilot
libraries/AP_Scripting/examples/mission-save.lua
23
1420
-- Example of saving the current mission to a file on the SD card on arming local function save_to_SD() -- check if there is a mission to save local num_wp = mission:num_commands() if num_wp <= 1 then return end local index = 0 local file_name -- search for a index without a file while true do ...
gpl-3.0
jmachuca77/ardupilot
libraries/AP_Scripting/examples/6DoF_roll_pitch.lua
22
1957
-- A script for controlling the roll and pitch of 6DoF vehicles -- The script sets the target roll and pitch to the current value when arming or when E-stop is removed -- this allows the vehicle to be placed upside-down on the ground and to take off as normal -- its is also possible to setup a switch with option 300 to...
gpl-3.0
marcel-sch/luci
applications/luci-app-minidlna/luasrc/model/cbi/minidlna.lua
60
5493
-- Copyright 2012 Gabor Juhos <juhosg@openwrt.org> -- Licensed to the public under the Apache License 2.0. local m, s, o m = Map("minidlna", translate("miniDLNA"), translate("MiniDLNA is server software with the aim of being fully compliant with DLNA/UPnP-AV clients.")) m:section(SimpleSection).template = "minidln...
apache-2.0
Fenix-XI/Fenix
scripts/globals/mobskills/Deadeye.lua
28
1185
--------------------------------------------- -- Deadeye -- Family: Qiqurn -- Description: Lowers the defense and magical defense of enemies within range. -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown -- Notes: Used only by certain Notorious Monsters. Strong effect. ---------------...
gpl-3.0
wangg12/fbcunn
test/test_HSM_speed.lua
9
6021
-- Copyright 2004-present Facebook. All Rights Reserved. -- Author: Michael Mathieu <myrhev@fb.com> require 'fbcunn' require 'fbnn' require 'math' require 'nn' require 'os' require 'sys' torch.setdefaulttensortype('torch.DoubleTensor') torch.manualSeed(111) local debugger = require 'fb.debugger' local numIters = 100...
bsd-3-clause
tcatm/luci
applications/luci-app-pbx/luasrc/controller/pbx.lua
144
1448
--[[ 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
DarkstarProject/darkstar
scripts/globals/mobskills/poison_sting.lua
11
1028
--------------------------------------------------- -- Poison Sting -- Deals Water damage to targets in a fan-shaped area of effect. Additional effect: Poison --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmove...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Cloister_of_Frost/bcnms/class_reunion.lua
30
1515
----------------------------------- -- Area: Cloister of Tremors -- BCNM: Class Reunion ----------------------------------- package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Cloister_of_Frost/TextIDs"); ----------------------------------- --...
gpl-3.0
DarkstarProject/darkstar
scripts/globals/items/slice_of_margherita_pizza.lua
11
1187
----------------------------------------- -- ID: 6213 -- Item: slice of margherita pizza -- Food Effect: 30 minutes, all Races ----------------------------------------- -- HP +30 -- Accuracy+10% (Max. 8) -- Attack+10% (Max. 10) ----------------------------------------- require("scripts/globals/status") require("scripts...
gpl-3.0
Oarcinae/FactorioScenarioMultiplayerSpawn
lib/separate_spawns.lua
1
46348
-- separate_spawns.lua -- Nov 2016 -- -- Code that handles everything regarding giving each player a separate spawn -- Includes the GUI stuff require("lib/oarc_utils") require("config") local crash_site = require("crash-site") --[[ ___ _ _ ___ _____ |_ _|| \| ||_ _||_ _| | | | .` | | | | | |___||_|\_...
mit
Fenix-XI/Fenix
scripts/zones/Northern_San_dOria/npcs/Dapraugeant.lua
13
1414
----------------------------------- -- Area: Northern San d'Oria -- NPC: Dapraugeant -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); re...
gpl-3.0
DarkstarProject/darkstar
scripts/zones/Spire_of_Vahzl/bcnms/desires_of_emptiness.lua
9
1551
----------------------------------- -- Desires of Emptiness -- Spire of Vahzl mission battlefield ----------------------------------- require("scripts/globals/battlefield") require("scripts/globals/missions") require("scripts/globals/titles") ----------------------------------- function onBattlefieldTick(battlefield, ...
gpl-3.0
Fenix-XI/Fenix
scripts/globals/weaponskills/arching_arrow.lua
11
1372
----------------------------------- -- Arching Arrow -- Archery weapon skill -- Skill level: 225 -- Delivers a single-hit attack. Chance of params.critical varies with TP. -- Aligned with the Flame Gorget & Light Gorget. -- Aligned with the Flame Belt & Light Belt. -- Element: None -- Modifiers: STR:16% ; AGI:25% -- 10...
gpl-3.0
DarkstarProject/darkstar
scripts/zones/Promyvion-Vahzl/IDs.lua
12
3077
----------------------------------- -- Area: Promyvion-Vahzl ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.PROMYVION_VAHZL] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come ba...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Cloister_of_Gales/bcnms/carbuncle_debacle.lua
30
1596
----------------------------------- -- Area: Cloister of Gales -- BCNM: Carbuncle Debacle ----------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Cloister_of_Gales/TextIDs"); require("scripts/globals/settings"); r...
gpl-3.0
eugeneia/snabbswitch
lib/pflua/tests/pfquickcheck/pflang_math.lua
25
2387
#!/usr/bin/env luajit module(..., package.seeall) local io = require("io") local codegen = require("pf.backend") local expand = require("pf.expand") local parse = require("pf.parse") local pfcompile = require("pfquickcheck.pfcompile") local libpcap = require("pf.libpcap") local bpf = require("pf.bpf") local utils = re...
apache-2.0
Fenix-XI/Fenix
scripts/zones/West_Ronfaure/npcs/qm2.lua
13
1479
----------------------------------- -- Area: West Ronfaure -- NPC: qm2 (???) -- Involved in Quest: The Dismayed Customer -- @pos -550 -0 -542 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings")...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Windurst_Woods/npcs/Etsa_Rhuyuli.lua
13
1475
----------------------------------- -- 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
Fenix-XI/Fenix
scripts/zones/Northern_San_dOria/npcs/Castilchat.lua
7
3512
----------------------------------- -- Area: Northern San d'Oria -- NPC: Castilchat -- Starts Quest: Trial Size Trial by Ice -- @pos -186 0 107 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"...
gpl-3.0
DarkstarProject/darkstar
scripts/zones/Port_Bastok/npcs/Paujean.lua
9
2230
----------------------------------- -- Area: Port Bastok -- NPC: Paujean -- Starts & Finishes Quest: Silence of the Rams -- !pos -93.738 4.649 34.373 236 ----------------------------------- local ID = require("scripts/zones/Port_Bastok/IDs"); require("scripts/globals/settings"); require("scripts/globals/quests"); requ...
gpl-3.0
DarkstarProject/darkstar
scripts/zones/Outer_Horutoto_Ruins/npcs/_5eb.lua
9
1936
----------------------------------- -- Area: Outer Horutoto Ruins -- NPC: Gate: Magical Gizmo -- Involved In Mission: Full Moon Fountain -- !pos -291 0 -659 194 ----------------------------------- local ID = require("scripts/zones/Outer_Horutoto_Ruins/IDs") require("scripts/globals/keyitems") require("scripts/globals/...
gpl-3.0
DarkstarProject/darkstar
scripts/globals/items/nosteau_herring.lua
11
1054
----------------------------------------- -- ID: 4482 -- Item: nosteau_herring -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") --------------------------------...
gpl-3.0
DarkstarProject/darkstar
scripts/globals/items/jack-o-pie.lua
11
1029
----------------------------------------- -- ID: 5644 -- Item: jack-o-pie -- Food Effect: 1hour, All Races ----------------------------------------- -- MP 45 -- CHR -1 -- Intelligence 4 -- hMP +1 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") -----------------...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Lower_Jeuno/npcs/_l06.lua
13
1554
----------------------------------- -- Area: Lower Jeuno -- NPC: Streetlamp -- Involved in Quests: Community Service -- @zone 245 -- @pos -52.752 0 -60.492 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settin...
gpl-3.0
Fenix-XI/Fenix
scripts/globals/items/strip_of_smoked_mackerel.lua
18
1181
----------------------------------------- -- ID: 5943 -- Item: Strip of Smoked Mackerel -- Food Effect: 30Min, All Races ----------------------------------------- -- Agility 4 -- Vitality -3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIte...
gpl-3.0
8devices/carambola2-luci
applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua
147
5025
require("luci.tools.webadmin") m = Map("multiwan", translate("Multi-WAN"), translate("Multi-WAN allows for the use of multiple uplinks for load balancing and failover.")) s = m:section(NamedSection, "config", "multiwan", "") e = s:option(Flag, "enabled", translate("Enable")) e.rmempty = false e.default = e.enabled ...
apache-2.0
Fanatics/planout.lua
tests/testCoreOps.lua
1
7868
package.path = package.path .. ";../src/?.lua;" local Interpreter = require "interpreter" EXPORT_ASSERT_TO_GLOBALS = true require("resources.luaunit") TestCoreOps = {} function runConfig(config, init) local obj = Interpreter:new(config, 'test_salt', init or {}) return obj:getParams() end function r...
mit
Fenix-XI/Fenix
scripts/zones/Bastok_Mines/npcs/Sieglinde.lua
32
1749
----------------------------------- -- Area: Bastok Mines -- NPC: Sieglinde -- Alchemy Synthesis Image Support ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); req...
gpl-3.0
theFox6/working_villages
working_villagers/async_actions.lua
1
14995
local fail = working_villages.require("failures") local log = working_villages.require("log") local func = working_villages.require("jobs/util") local pathfinder = working_villages.require("pathfinder") --TODO: add variable precision function working_villages.villager:go_to(pos) self.destination=vector.round(pos) if...
mit
DarkstarProject/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Rytaal.lua
9
4090
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Rytaal -- Type: Standard NPC -- !pos 112.002 -1.338 -45.038 50 ----------------------------------- local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs") require("scripts/globals/keyitems") require("scripts/globals/missions") require("scri...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Abyssea-Grauberg/npcs/qm2.lua
17
1028
----------------------------------- -- Zone: Abyssea-Grauberg -- NPC: ??? -- Spawns: Ningishzida ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) --[[ if (trade:hasI...
gpl-3.0
MartinFrancu/BETS
chili_clone/controls/tabbaritem_clone.lua
2
1050
--//============================================================================= TabBarItem = Button:Inherit{ classname= "tabbaritem", caption = 'tab', height = "100%", } local this = TabBarItem local inherited = this.inherited --//================================================================...
mit
Fenix-XI/Fenix
scripts/zones/Windurst_Woods/npcs/Wije_Tiren.lua
17
1440
----------------------------------- -- Area: Windurst Woods -- NPC: Wije Tiren -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; require("scripts/zones/Windurst_Woods/TextIDs"...
gpl-3.0
crunchuser/prosody-modules
mod_auth_ldap2/mod_auth_ldap2.lua
36
2106
-- vim:sts=4 sw=4 -- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- Copyright (C) 2012 Rob Hoelz -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- http://code.google.com/p/prosody-modules/source/brows...
mit
Fenix-XI/Fenix
scripts/zones/Eastern_Altepa_Desert/mobs/Cactrot_Rapido.lua
8
13308
----------------------------------- -- Area: Eastern Altepa Desert -- NM: Cactrot Rapido ----------------------------------- require("scripts/globals/titles"); local path = { -45.214237, 0.059482, -204.244873, -46.114422, 0.104212, -203.765884, -47.013275, 0.149004, -203.285812, -47.911877, 0.19375...
gpl-3.0
alirezadeadly/sers
plugins/Clash_of_Clans.lua
3
2855
local apikey = 'Enter Your Clash API here' local function run(msg, matches) if matches[1]:lower() == 'clash' then local clantag = matches[2] if string.match(matches[2], '^#.+$') then clantag = string.gsub(matches[2], '#', '') end clantag = string.upper(clantag) local curl = 'curl -X GET --header "Acc...
gpl-2.0
Fenix-XI/Fenix
scripts/zones/Rolanberry_Fields_[S]/npcs/Cavernous_Maw.lua
27
2142
----------------------------------- -- Area: Sauromugue Champaign -- NPC: Cavernous Maw -- @pos -198 8 360 91 -- Teleports Players to Rolanberry Fields ----------------------------------- package.loaded["scripts/zones/Rolanberry_Fields_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
marcel-sch/luci
applications/luci-app-fwknopd/luasrc/model/cbi/fwknopd.lua
45
3678
-- Copyright 2015 Jonathan Bennett <jbennett@incomsystems.biz> -- Licensed to the public under the GNU General Public License v2. m = Map("fwknopd", translate("Firewall Knock Operator")) s = m:section(TypedSection, "global", translate("Enable Uci/Luci control")) -- Set uci control on or off s.anonymous=true s:option(...
apache-2.0
DarkstarProject/darkstar
scripts/globals/items/plate_of_dulcet_panettones.lua
11
1084
----------------------------------------- -- ID: 5979 -- Item: Plate of Dulcet Panettones -- Food Effect: 240 Min, All Races ----------------------------------------- -- MP % 6 Cap 105 -- Intelligence +8 -- MP Healing +4 ----------------------------------------- require("scripts/globals/status") require("scripts/global...
gpl-3.0
dios-game/dios
templates/lua_cocos/resources/src/cocos/cocos2d/bitExtend.lua
104
1590
-- bit operation bit = bit or {} bit.data32 = {} for i=1,32 do bit.data32[i]=2^(32-i) end function bit._b2d(arg) local nr=0 for i=1,32 do if arg[i] ==1 then nr=nr+bit.data32[i] end end return nr end function bit._d2b(arg) arg = arg >= 0 and arg or (0xFFFFFFFF + a...
mit
DarkstarProject/darkstar
scripts/zones/Bhaflau_Thickets/npcs/Hamta-Iramta.lua
12
1259
----------------------------------- -- Area: Bhaflau Thickets -- NPC: Hamta-Iramta -- Type: Alzadaal Undersea Ruins -- !pos -459.942 -20.048 -4.999 52 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- function onTrade(player,npc,trade) if (trade:getItemCount() ==...
gpl-3.0
eugeneia/snabbswitch
src/apps/basic/basic_apps.lua
7
4055
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local app = require("core.app") local packet = require("core.packet") local link = require("core.link") local ffi = require("ffi") local transmit, receive = link.transmit, link.receive --- # `Source` app: genera...
apache-2.0
DarkstarProject/darkstar
scripts/zones/Oldton_Movalpolos/Zone.lua
9
1647
----------------------------------- -- -- Zone: Oldton_Movalpolos (11) -- ----------------------------------- local ID = require("scripts/zones/Oldton_Movalpolos/IDs") require("scripts/globals/conquest") require("scripts/globals/missions") require("scripts/globals/treasure") require("scripts/globals/helm") ------------...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Port_Windurst/npcs/Porter_Moogle.lua
41
1533
----------------------------------- -- Area: Port Windurst -- NPC: Porter Moogle -- Type: Storage Moogle -- @zone 240 -- @pos TODO ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_Windurst/TextID...
gpl-3.0
ld-test/socks5
socks5.lua
2
3991
local ngx = require('ngx') local socks5 = {} local char = string.char -- magic numbers local SOCKS5 = 0x05 local NUMBER_OF_AUTH_METHODS = 0x01 local NO_AUTHENTICATION = 0x00 local TCP_CONNECTION = 0x01 local RESERVED = 0x00 local IPv4 = 0x01 local DOMAIN_NAME = 0x03 local IPv6 = 0x04 local REQUEST_GRANTED = 0x00 lo...
mit
Fenix-XI/Fenix
scripts/zones/Southern_San_dOria/npcs/Aubejart.lua
13
1460
----------------------------------- -- Area: Southern San d'Oria -- NPC: Aubejart -- General Info NPC -- @zone 230 -- @pos 3 -2 46 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"...
gpl-3.0
DarkstarProject/darkstar
scripts/zones/Alzadaal_Undersea_Ruins/IDs.lua
10
2661
----------------------------------- -- Area: Alzadaal_Undersea_Ruins ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.ALZADAAL_UNDERSEA_RUINS] = { text = { NOTHING_HAPPENS = 119, -- Nothing happens... ...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Port_Jeuno/npcs/Jaipal.lua
30
1260
----------------------------------- -- Area: Port Jeuno -- NPC: Jaipal -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; require("scripts/zones/Port_Jeuno/TextIDs"); ----------------------------------- -- onTrade Action --------------------------------...
gpl-3.0
oTibia/UnderLight-AK47
data/spells/scripts/support/party_druid.lua
2
1828
local combat = createCombatObject() local area = createCombatArea(AREA_CROSS5X5) setCombatArea(combat, area) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(conditio...
gpl-2.0
DarkstarProject/darkstar
scripts/globals/spells/bluemagic/magic_hammer.lua
12
2243
----------------------------------------- -- Spell: Magic Hammer -- Steals an amount of enemy's MP equal to damage dealt. Ineffective against undead -- Spell cost: 40 MP -- Monster Type: Beastmen -- Spell Type: Magical (Light) -- Blue Magic Points: 4 -- Stat Bonus: MP-5, MND+2 -- Level: 74 -- Casting Time: 4 seconds --...
gpl-3.0
DarkstarProject/darkstar
scripts/globals/spells/bluemagic/sheep_song.lua
12
1449
----------------------------------------- -- Spell: Sheep Song -- Puts all enemies within range to sleep -- Spell cost: 22 MP -- Monster Type: Beasts -- Spell Type: Magical (Light) -- Blue Magic Points: 2 -- Stat Bonus: CHR+1, HP+5 -- Level: 16 -- Casting Time: Casting Time: 3 seconds -- Recast Time: Recast Time: 60 se...
gpl-3.0
8devices/carambola2-luci
modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
36
15568
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008-2011 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 htt...
apache-2.0
alirezadeadly/sers
plugins/Invite.lua
3
2167
do local function invite_user(chat_id, user_id) if is_super_banned(user_id) or is_banned(user_id, chat_id) then return send_large_msg('chat#id'..chat_id, 'Invitation canceled.\n' ..'ID'..user_id..' is (super)banned.') end chat_add_user('chat#id'..chat_id, 'user#id'..user...
gpl-2.0
eugeneia/snabbswitch
lib/ljsyscall/syscall/linux/x86/ffi.lua
24
1567
-- x86 specific definitions return { ucontext = [[ typedef int greg_t, gregset_t[19]; typedef struct _fpstate { unsigned long cw, sw, tag, ipoff, cssel, dataoff, datasel; struct { unsigned short significand[4], exponent; } _st[8]; unsigned long status; } *fpregset_t; typedef struct { gregset_t gregs; ...
apache-2.0
Fenix-XI/Fenix
scripts/zones/Windurst_Waters_[S]/npcs/Renten-Tonten.lua
13
1068
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Renten-Tonten -- Type: Standard NPC -- @zone: 94 -- @pos 133.840 -6.75 173.305 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = n...
gpl-3.0
DarkstarProject/darkstar
scripts/globals/mobskills/pw_decussate.lua
11
1063
--------------------------------------------- -- Decussate -- -- Description: Performs a cross attack on nearby targets. -- Type: Magical -- Utsusemi/Blink absorb: 2-3 shadows? -- Range: Less than or equal to 10.0 -- Notes: Only used by Gulool Ja Ja when below 35% health. --------------------------------------------- r...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Kuftal_Tunnel/npcs/qm1.lua
13
1165
----------------------------------- -- Area: Kuftal Tunnel -- NPC: ??? (qm1) -- Note: Used to spawn Phantom Worm -- @pos 75.943 29.916 118.854 174 ----------------------------------- package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Kuftal_Tunnel/T...
gpl-3.0
DarkstarProject/darkstar
scripts/zones/Dangruf_Wadi/npcs/qm4.lua
9
2082
----------------------------------- -- NPC: ??? (QM4) -- Type: Grasswix (dice roll game part 2) -- !pos -375.379 -2.221 445.034 191 -- Involved in quest "As Thick As Thieves" ----------------------------------- local ID = require("scripts/zones/Dangruf_Wadi/IDs") require("scripts/globals/npc_util") require("scripts/gl...
gpl-3.0
TanKode/fivem-lua-sdk
client/native/fire.lua
1
7432
-- Starts a fire: xyz: Location of fire maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing. isGasFire: Whether or not the fire is powered by gasoline. -- @module native -- @submodule fire -- @see START_SCRIPT_FIRE -- @usage int START_SCRIPT_...
mit
DarkstarProject/darkstar
scripts/globals/items/galkan_sausage_+3.lua
11
1056
----------------------------------------- -- ID: 5861 -- Item: galkan_sausage_+3 -- Food Effect: 30Min, All Races ----------------------------------------- -- Strength 6 -- Intelligence -7 -- Attack 12 -- Ranged Attack 12 ----------------------------------------- require("scripts/globals/status") require("scripts/globa...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Northern_San_dOria/npcs/Letterare.lua
13
1412
----------------------------------- -- Area: Northern San d'Oria -- NPC: Letterare -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); requ...
gpl-3.0
botFree/botFree
decoration.lua
2
8239
--[[ _ _ _ _ ___ ___ _ __ _| |__ ___ ___| | ___ __ ___ _ __ (_) __ _ / |/ _ \ / _ \| | __ / _` | '_ \ / _ \/ __| |/ / '__/ _ \| '_ \ | |/ _` | | | | | | | | | |/ / | (_| | |_) | (_) \__ \ <| | | (_) | |_) | | | (_| | | | |_| | |_| | < ...
gpl-2.0
GameDevStudios/MrBallGuy2
assets/achievements/config.lua
1
1690
function AchievementSystemConfig(achievementSystem) achievementSystem:CreateAchievement("1_coin", "Look! A penny!", "Collect 1 coin", "ach1.png") achievementSystem:CreateAchievement("50_coin", "50 coins!", "Collect 50 coins", "ach1.png") achievementSystem:CreateAchievement("100_coin", "100 pennies!", "Coll...
gpl-3.0
DarkstarProject/darkstar
documentation/bcnm_loot_converted.lua
10
106076
-- todo: -- see scripts/zones/Balgas_Dais/npcs/Armoury_Crate.lua -- copy these into a loot table and pass to dsp.battlefield.HandleLootRolls (like in above script) -- most bcnms can use their ids as the key, though limbus does its own shit -- you'll need to look up these ids in bcnm_loot table to find any bcnms theyre...
gpl-3.0
eugeneia/snabbswitch
src/apps/bridge/mac_table.lua
4
21875
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- -- This module implements a MAC address table as part of the learning -- bridge app (apps.bridge.learning). It associates a MAC address -- with the bridge port on which the last packet originating from the -- address has been seen by the...
apache-2.0
tcatm/luci
applications/luci-app-radvd/luasrc/model/cbi/radvd/dnssl.lua
61
2025
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local sid = arg[1] local utl = require "luci.util" m = Map("radvd", translatef("Radvd - DNSSL"), translate("Radvd is a router advertisement daemon for IPv6. " .. "It listens to router solicitations and sends...
apache-2.0
DarkstarProject/darkstar
scripts/zones/Southern_San_dOria/npcs/Alivatand.lua
11
2676
----------------------------------- -- Area: South San d'Oria -- NPC: Alivatand -- Type: Guildworker's Union Representative -- !pos -179.458 -1 15.857 230 ----------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs"); require("scripts/globals/keyitems"); require("scripts/globals/crafti...
gpl-3.0
Whit3Tig3R/BeST-ZeD-SPamm-Bot
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
Ali-Dragon/Dragon
plugins/help.lua
1
6603
--[[ _ BY:@Aaa1R __| |_ __ __ _ __ _ ___ _ __ / _` | '__/ _` |/ _` |/ _ \| '_ \ | (_| | | | (_| | (_| | (_) | | | | \__,_|_| \__,_|\__, |\___/|_| |_| |___/ --]] do function run(msg, matches) if matches[1] == "الاوامر" and is_momod(msg) then ...
gpl-2.0
dios-game/dios
templates/lua_cocos/resources/src/cocos/ui/DeprecatedUIEnum.lua
55
4963
if nil == ccui then return end LAYOUT_COLOR_NONE = ccui.LayoutBackGroundColorType.none LAYOUT_COLOR_SOLID = ccui.LayoutBackGroundColorType.solid LAYOUT_COLOR_GRADIENT = ccui.LayoutBackGroundColorType.gradient LAYOUT_ABSOLUTE = ccui.L...
mit
DarkstarProject/darkstar
scripts/zones/Abyssea-Konschtat/npcs/Conflux_Surveyor.lua
9
2953
----------------------------------- -- Zone: Abyssea - Konschtat -- NPC: Conflux Surveyor -- !pos 133.000 -72.738 -824.000 15 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/abyssea") require("scripts/globals/status") ----------------------------------- function onTrad...
gpl-3.0
DarkstarProject/darkstar
scripts/zones/Selbina/npcs/Torapiont.lua
11
1046
----------------------------------- -- Area: Selbina -- NPC: Torapiont -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Selbina/IDs") require("scripts/globals/shop") ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc)...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Beadeaux/TextIDs.lua
22
1373
-- 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 = 6384; -- Obtained: <item>. GIL_OBTAINED = 6385; -- Obtained <number> gil. KEYITEM_OBTAINED = 6387; -- Obtained...
gpl-3.0
DarkstarProject/darkstar
scripts/globals/abilities/pets/healing_breath.lua
12
1507
--------------------------------------------- -- Healing Breath I --------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves") require("scripts/globals/msg") --------------------------------------------- function onAbility...
gpl-3.0
Fenix-XI/Fenix
scripts/zones/Nashmau/npcs/Porter_Moogle.lua
41
1514
----------------------------------- -- Area: Nashmau -- NPC: Porter Moogle -- Type: Storage Moogle -- @zone 53 -- @pos TODO ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); require("scrip...
gpl-3.0
squar/game-mygame
main.lua
1
1102
--[[ Copyright 2014 MySQUAR 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 agreed to in writ...
apache-2.0
Fenix-XI/Fenix
scripts/zones/Ghelsba_Outpost/Zone.lua
32
1572
----------------------------------- -- -- Zone: Ghelsba_Outpost (140) -- ----------------------------------- package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Ghelsba_Outpost/TextIDs"); -----------------------...
gpl-3.0
jshackley/darkstar
scripts/globals/items/bowl_of_oceanfin_soup.lua
36
1822
----------------------------------------- -- ID: 6070 -- Item: Bowl of Oceanfin Soup -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- Accuracy % 15 Cap 95 -- Ranged Accuracy % 15 Cap 95 -- Attack % 19 Cap 85 -- Ranged Attack % 19 Cap 85 -- Amorph Killer 6 -----------------------------------...
gpl-3.0
kaelzhang/lua-gaia
nginx/lua/cacher.lua
1
2697
-- Cacher -- By default, use uri as the hash key local function default_hash_key () return ngx.var.uri end local function default_set () error('set must be specified') end local function default_get () error('get must be specified') end local function default_load () error('load must be specified') end ...
mit
catwell/mule
lightning_mdb.lua
1
20173
--module("lightning_mdb",package.seeall) local lightningmdb_lib= require("lightningmdb") local pp = require("purepack") require "helpers" require "conf" local disable_cache = false local lightningmdb = _VERSION >= "Lua 5.2" and lightningmdb_lib or lightningmdb local NUM_PAGES = 256000 local MAX_SLOTS_IN_SPARSE_SEQ =...
apache-2.0
jshackley/darkstar
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
Ombridride/minetest-minetestforfun-server
mods/mobs/mese_monster.lua
7
3257
-- Mese Monster by Zeg9 mobs:register_mob("mobs:mese_monster", { -- animal, monster, npc, barbarian type = "monster", -- agressive, deals 4 damage to player when hit passive = false, damage = 4, attack_type = "shoot", shoot_interval = 1.0, arrow = "mobs:mese_arrow", shoot_offset = 2, -- health & armor hp_m...
unlicense
sjmog/neural-style
neural_style.lua
19
11788
require 'torch' require 'nn' require 'image' require 'optim' local loadcaffe_wrap = require 'loadcaffe_wrapper' -------------------------------------------------------------------------------- local cmd = torch.CmdLine() -- Basic options cmd:option('-style_image', 'examples/inputs/seated-nude.jpg', 'Styl...
mit
jshackley/darkstar
scripts/globals/items/faerie_apple.lua
35
1211
----------------------------------------- -- ID: 4363 -- Item: faerie_apple -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -4 -- Intelligence 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- On...
gpl-3.0
VincentGong/chess
cocos2d-x/cocos/scripting/lua-bindings/auto/api/Director.lua
3
8705
-------------------------------- -- @module Director -------------------------------- -- @function [parent=#Director] pause -- @param self -------------------------------- -- @function [parent=#Director] pushScene -- @param self -- @param #cc.Scene scene -------------------------------- -- @functi...
mit
jshackley/darkstar
scripts/zones/Northern_San_dOria/npcs/Dapraugeant.lua
36
1430
----------------------------------- -- Area: Northern San d'Oria -- NPC: Dapraugeant -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/que...
gpl-3.0
jshackley/darkstar
scripts/globals/items/silken_sash.lua
36
1212
----------------------------------------- -- ID: 5632 -- Item: Silken Sash -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP Recovered while healing +3 -- MP Recovered while healing +5 ----------------------------------------- require("scripts/globals/status"); ---...
gpl-3.0
luastoned/turbo
turbo/websocket.lua
3
29615
--- Turbo.lua Websocket module. -- -- Websockets according to the RFC 6455. http://tools.ietf.org/html/rfc6455 -- -- The module offers two classes: -- * WebSocketHandler - WebSocket support for turbo.web.Application. -- * WebSocketClient - Callback based WebSocket client. -- Both classes uses the mixin class WebSocket...
apache-2.0
jshackley/darkstar
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
Ombridride/minetest-minetestforfun-server
mods/multitest/init.lua
9
1766
multitest = {} multitest.colors = {"black", "blue", "brown", "cyan", "dark_green", "dark_grey", "green", "grey", "magenta", "orange", "pink", "red", "violet", "white", "yellow"} multitest.colornames = {"Black", "Blue", "Brown", "Cyan", "Dark Green", "Dark Grey", "Green", "Grey", "Magenta", "Orange", "Pink", "...
unlicense
goksie/newfies-dialer
lua/libs/dbhandler.lua
4
4051
-- -- Newfies-Dialer License -- http://www.newfies-dialer.org -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this file, -- You can obtain one at http://mozilla.org/MPL/2.0/. -- -- Copyright (C) 2011-2014 Star2Billing S.L. -- --...
mpl-2.0