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
satanevil/The-Great-satan
plugins/stats.lua
1
3986
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
smartdevicelink/sdl_atf_test_scripts
test_scripts/RC/CLIMATE_RADIO/GetInteriorVehicleData/011_GENERIC_ERROR_in_case_HMI_respond_with_READ_ONLY.lua
1
2033
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/2 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/RC/current_module_status_data.md -- Item: Use Case 1:...
bsd-3-clause
EnigmaTeam/EnigmaBot
plugins/anti_spam.lua
191
5291
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
gpl-2.0
montadar97/montadar-100k
plugin/ingroup.lua
47
60291
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.peer_id if member_id ~= our_id then -- Group configuration data[...
gpl-3.0
smartdevicelink/sdl_atf_test_scripts
test_scripts/API/SDL_Passenger_Mode/008_OnDD_hmiLevel_NONE_to_FULL_DD_ON.lua
1
3237
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0119-SDL-passenger-mode.md -- Description: -- In case: -- 1) OnDriverDistraction notification is allowed by Policy for (FULL, LIMITED, ...
bsd-3-clause
8devices/luci
applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua
7
7768
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- loc...
apache-2.0
ddumont/darkstar
scripts/zones/Davoi/npcs/_459.lua
14
1163
----------------------------------- -- Area: Davoi -- NPC: Wall of Dark Arts -- Involved in Mission: Magicite -- @pos -22 1 -66 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/D...
gpl-3.0
Squeakz/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/Jagaris.lua
14
4335
----------------------------------- -- Area: Bastok Markets [S] -- NPC: Jagaris -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/armorstorage"); requ...
gpl-3.0
ddumont/darkstar
scripts/zones/Outer_Horutoto_Ruins/npcs/_5ef.lua
17
3743
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Ancient Magical Gizmo #2 (F out of E, F, G, H, I, J) -- Involved In Mission: The Heart of the Matter ----------------------------------- package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- re...
gpl-3.0
Squeakz/darkstar
scripts/zones/Dynamis-Beaucedine/mobs/Goblin_Statue.lua
22
1841
----------------------------------- -- Area: Dynamis Beaucedine -- MOB: Goblin Statue -- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg ----------------------------------- package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil; ----------------...
gpl-3.0
yeewang/openwrt-luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-format.lua
80
3636
--[[ 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
ff-kbu/fff-luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-format.lua
80
3636
--[[ 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
ddumont/darkstar
scripts/zones/Al_Zahbi/npcs/Chochoroon.lua
14
1035
----------------------------------- -- Area: Al Zahbi -- NPC: Chochoroon -- Type: Appraiser -- @zone 48 -- @pos -42.739 -1 -45.987 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; -----------------------------...
gpl-3.0
ddumont/darkstar
scripts/globals/items/slice_of_roast_mutton.lua
12
1390
----------------------------------------- -- ID: 4437 -- Item: slice_of_roast_mutton -- Food Effect: 180Min, All Races ----------------------------------------- -- Strength 3 -- Intelligence -1 -- Attack % 27 -- Attack Cap 30 ----------------------------------------- require("scripts/globals/status"); ---------------...
gpl-3.0
smartdevicelink/sdl_atf_test_scripts
test_scripts/Defects/8_2/2468/2468_9_AddCommand_VR_Only_Failure.lua
1
1932
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/smartdevicelink/sdl_core/issues/2468 --------------------------------------------------------------------------------------------------- -- Use case: AddCommand -- Item: Failure from VR porti...
bsd-3-clause
ddumont/darkstar
scripts/zones/Kazham/npcs/Hari_Pakhroib.lua
29
3020
----------------------------------- -- Area: Kazham -- NPC: Hari Pakhroib -- Starts and Finishes Quest: Greetings to the Guardian ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/globals/quests"); require("scripts/globals/t...
gpl-3.0
ddumont/darkstar
scripts/zones/RuLude_Gardens/TextIDs.lua
6
2942
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6519; -- You cannot obtain the item <item>. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6523; -- You cannot obtain the <item>. Try trading again after sorting your inventory. ITEM_OBTAINED = 6525; ...
gpl-3.0
ddumont/darkstar
scripts/globals/items/apple_pie_+1.lua
12
1295
----------------------------------------- -- ID: 4320 -- Item: Apple Pie +1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Magic 30 -- Intelligence 4 -- Magic Regen While Healing 2 ----------------------------------------- require("scripts/globals/status"); -----------------------------...
gpl-3.0
smartdevicelink/sdl_atf_test_scripts
test_scripts/SDL5_0/LowVoltage/007_Low_Voltage_and_Wake_Up_absence_resumption_FULL_hmi_level_in_case_existed_app_in_full.lua
1
2802
--------------------------------------------------------------------------------------------------- -- In case: -- 1. Mobile app is in FULL HMILevel -- 2. App has some persistent data that can be resumed -- 3. Mobile app is disconnected during the time frame of 30 sec (inclusive) before "SDL_LOW_VOLTAGE" unix signal fr...
bsd-3-clause
rybakit/queue
queue/abstract/driver/fifo.lua
1
2567
local state = require 'queue.abstract.state' local tube = {} local method = {} -- create space function tube.create_space(space_name, opts) local space_opts = {} if opts.temporary then space_opts.temporary = true end local space = box.schema.create_space(space_name, space_opts) space:crea...
bsd-2-clause
jlcvp/otxserver
data/monster/quests/hero_of_rathleton/glooth_horror.lua
2
2345
local mType = Game.createMonsterType("Glooth Horror") local monster = {} monster.description = "glooth horror" monster.experience = 900 monster.outfit = { lookType = 677, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 15000 monster.maxHealth = 15000 mon...
gpl-2.0
AwrmawnTg-Cli/Uzzbot
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
Squeakz/darkstar
scripts/globals/bluemagic.lua
8
14343
require("scripts/globals/status") require("scripts/globals/magic") BLUE_SKILL = 43; -- The type of spell. SPELLTYPE_PHYSICAL = 0; SPELLTYPE_MAGICAL = 1; SPELLTYPE_RANGED = 2; SPELLTYPE_BREATH = 3; SPELLTYPE_DRAIN = 4; SPELLTYPE_SPECIAL = 5; -- The TP modifier TPMOD_NONE = 0; TPMOD_CRITICAL = 1; TPMOD_DAMAGE = 2; TPM...
gpl-3.0
Squeakz/darkstar
scripts/zones/Bastok_Markets/npcs/Charging_Chocobo.lua
17
1618
----------------------------------- -- Area: Bastok Markets -- NPC: Charging Chocobo -- Standard Merchant NPC -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; require("...
gpl-3.0
jlcvp/otxserver
data/scripts/talkactions/god/count_monsters.lua
2
1105
local xml_monster_dir = 'data/world/otservbr-spawn.xml' -- Diretório do arquivo onde contém os monstros. local new_file_name = 'monster_count.txt' local count_monsters = TalkAction("/countmonsters") function count_monsters.onSay(player, words, param) if not player:getGroup():getAccess() then return true ...
gpl-2.0
Squeakz/darkstar
scripts/zones/Abyssea-Grauberg/npcs/qm15.lua
17
1535
----------------------------------- -- Zone: Abyssea-Grauberg -- NPC: ??? -- Spawns: Raja ----------------------------------- require("scripts/globals/status"); require("scripts/globals/keyitems"); ----------------------------------- -- onTrigger Action ----------------------------------- function onTrigger(player,...
gpl-3.0
Squeakz/darkstar
scripts/zones/Hall_of_Transference/npcs/_0e6.lua
22
1709
----------------------------------- -- Area: Hall of Transference -- NPC: Large Apparatus (Right) - Dem -- @pos -243.723 -41.482 -289.937 14 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Hall_of_Transfe...
gpl-3.0
Squeakz/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5c8.lua
13
2190
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Sealed Portal -- Involved in Quest: Making the Grade -- Working 50% -- Notes: Door will open if player has Making the Grade quest active, or if the have the KI portal charm. Door should open when 3 mages stand on circles, but no API f...
gpl-3.0
smartdevicelink/sdl_atf_test_scripts
test_scripts/API/KeyboardEnhancements/SetGlobalProperties/010_App_sets_masking_if_its_not_supported.lua
1
2292
---------------------------------------------------------------------------------------------------- -- Proposal: -- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0238-Keyboard-Enhancements.md ---------------------------------------------------------------------------------------------------- -...
bsd-3-clause
jlcvp/otxserver
data/monster/aquatics/renegade_quara_constrictor.lua
2
3207
local mType = Game.createMonsterType("Renegade Quara Constrictor") local monster = {} monster.description = "a renegade quara constrictor" monster.experience = 1250 monster.outfit = { lookType = 46, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 1097 mo...
gpl-2.0
behzadrkn/Fire-Bot
feedback.lua
4
1066
do function run(msg, matches) local fuse = '#DearAdmin😜 we have recived a new feedback just now : #newfeedback \n\nID▶️ : ' .. msg.from.id .. '\n\nName▶️ : ' .. msg.from.print_name ..'\n\nusername▶️ :@ ' .. msg.from.username ..'\n\n🅿️♏️ :\n\n\n' .. matches[1] local fuses = '!printf user#id' .. msg.from.id l...
gpl-2.0
Squeakz/darkstar
scripts/zones/Giddeus/npcs/Ghoo_Pakya.lua
13
2141
----------------------------------- -- Area: Giddeus -- NPC: Ghoo Pakya -- Involved in Mission 1-3 -- @pos -139 0 147 145 ----------------------------------- package.loaded["scripts/zones/Giddeus/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/mission...
gpl-3.0
ddumont/darkstar
scripts/zones/Windurst_Woods/npcs/Kuoh_Rhel.lua
13
4075
----------------------------------- -- Area: Windurst Woods -- NPC: Kuoh Rhel -- Type: Standard NPC -- @zone 241 -- @pos 131.437 -6 -102.723 -- Starts quests: Chocobilious, In a Stew -- Note: In a Stew should only repeat once per conquest tally. The tally is not implemented at time of -- writing this quest. ...
gpl-3.0
ddumont/darkstar
scripts/globals/items/salmon_rice_ball.lua
12
1508
----------------------------------------- -- ID: 4590 -- Item: Salmon Rice Ball -- Food Effect: 30Min, All Races ----------------------------------------- -- HP +10 -- Dex +2 -- Vit +2 -- Mnd -1 -- hHP +1 -- Effect with enhancing equipment (Note: these are latents on gear with the effect) -- Atk +40 -- Def +40 --------...
gpl-3.0
EnigmaTeam/EnigmaBot
plugins/image.lua
1
3199
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
NickSavage/koreader
frontend/ui/widget/networksetting.lua
1
14286
--[[-- Network setting widget. Example: local network_list = { { ssid = "foo", signal_level = -58, flags = "[WPA2-PSK-CCMP][ESS]", signal_quality = 84, password = "123abc", connected = true, }, { ssid = "ba...
agpl-3.0
zeromq/malamute
bindings/lua_ffi/malamute_ffi.lua
4
10521
-------------------------------------------------------------------------------- -- THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY - -- Read the zproject/README.md for information about making permanent changes. - ---------------------------------------------------------------------------...
mpl-2.0
jlcvp/otxserver
data/monster/quests/the_secret_library/bosses/thawing_dragon_lord.lua
2
2908
local mType = Game.createMonsterType("Thawing Dragon Lord") local monster = {} monster.description = "a thawing dragon lord" monster.experience = 2100 monster.outfit = { lookType = 1077, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 25000 monster.maxHe...
gpl-2.0
jorgifumi/luci
applications/luci-app-shairplay/luasrc/model/cbi/shairplay.lua
78
1789
-- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com> -- Licensed to the public under the Apache License 2.0. m = Map("shairplay", "Shairplay", translate("Shairplay is a simple AirPlay server implementation, here you can configure the settings.")) s = m:section(TypedSection, "shairplay", "") s.addremove = true...
apache-2.0
lemonkit/VisualCocos
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua
6
2739
-------------------------------- -- @module AssetsManagerEx -- @extend Ref -- @parent_module cc -------------------------------- -- @brief Gets the current update state. -- @function [parent=#AssetsManagerEx] getState -- @param self -- @return int#int ret (return value: int) -------------------------------...
mit
ddumont/darkstar
scripts/globals/items/cup_of_date_tea.lua
12
1411
----------------------------------------- -- ID: 5926 -- Item: Cup of Date Tea -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- HP 20 -- MP 30 -- Vitality -1 -- Charisma 5 -- Intelligence 3 ----------------------------------------- require("scripts/globals/status"); ----------------------...
gpl-3.0
smartdevicelink/sdl_atf_test_scripts
test_scripts/Security/SSLHandshakeFlow/014_Non-Navi_Predefined_cert_missing_PTU_cert_expired_NACK.lua
1
1885
--------------------------------------------------------------------------------------------------- -- Issues: -- https://github.com/smartdevicelink/sdl_core/issues/2190 -- https://github.com/smartdevicelink/sdl_core/issues/2191 ---------------------------------------------------------------------------------------...
bsd-3-clause
pvpgn/pvpgn-server
lua/antihack/starcraft.lua
7
2206
--[[ Simple Anti MapHack for Starcraft: BroodWar 1.16.1 Copyright (C) 2014 HarpyWar (harpywar@gmail.com) This file is a part of the PvPGN Project http://pvpgn.pro Licensed under the same terms as Lua itself. ]]-- -- just unique request id for maphack ah_mh_request_id = 99 -- map visible offset ah_mh_offset =...
gpl-2.0
jchuang1977/luci-1
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/exec.lua
68
2536
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("Exec Plugin Configuration"), translate( "The exec plugin starts external commands to read values " .. "from or to notify external processes when cer...
apache-2.0
smartdevicelink/sdl_atf_test_scripts
test_scripts/Resumption/Handling_errors_from_HMI/036_Same_RPC_WP_RAI2_before_erroneous_response_from_HMI.lua
1
2868
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0190-resumption-data-error-handling.md -- -- Description: -- Check way points data resumption is failed for 1st app and succeeded for 2n...
bsd-3-clause
ddumont/darkstar
scripts/zones/Bastok_Markets/npcs/Harmodios.lua
14
2447
----------------------------------- -- Area: Bastok Markets -- NPC: Harmodios -- Standard Merchant NPC -- @pos -79.928 -4.824 -135.114 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scri...
gpl-3.0
smartdevicelink/sdl_atf_test_scripts
user_modules/shared_testcases/testCasesForEnumerationParameterInNotification.lua
1
2761
--This script contains all test cases to verify Enumeration parameter --How to use: --1. local enumParameterInNotification = require('user_modules/shared_testcases/testCasesForEnumerationParameterInNotification') --2. enumParameterInNotification:verify_Enumeration_Parameter(Notification, Parameter, ExistentValues, Is...
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts
test_scripts/RC/CLIMATE_RADIO/GetInteriorVehicleDataConsent/003_Consent_false_SIVD.lua
1
2983
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/10 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/RC/resource_allocation.md -- Item: Use Case 1: Alter...
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts
test_scripts/API/SetAppIcon/004_Remove_icon_and_reregistered_Mobile_app.lua
1
2135
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0041-appicon-resumption.md -- User story:TBD -- Use case:TBD -- -- Requirement summary: -- TBD -- -- Description: -- In case: -- 1) SDL,...
bsd-3-clause
pvpgn/pvpgn-server
lua/extend/enum/tag.lua
7
2518
--[[ Copyright (C) 2014 HarpyWar (harpywar@gmail.com) This file is a part of the PvPGN Project http://pvpgn.pro Licensed under the same terms as Lua itself. ]]-- -- -- Software tags -- CLIENTTAG_BNCHATBOT, -- CHAT bot CLIENTTAG_STARCRAFT, -- Starcraft (original) CLIENTTAG_BROODWARS, -- Starcraft EXpansio...
gpl-2.0
Squeakz/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/_4fz.lua
13
1510
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Granite Door -- Leads to painbrush room @ F-7 -- @pos 60 0.1 8 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); re...
gpl-3.0
Squeakz/darkstar
scripts/zones/Apollyon/mobs/Adamantshell.lua
4
1251
----------------------------------- -- Area: Apollyon SE -- NPC: Adamantshell ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); ---------------------------------...
gpl-3.0
fegimanam/as
plugins/spam.lua
25
207170
function run(msg, matches) return 'SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM...
gpl-2.0
ddumont/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5ct.lua
17
2597
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5ct (Magical Gizmo) #5 -- Involved In Mission: The Horutoto Ruins Experiment ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
spinlock/redis
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
albmarvil/The-Eternal-Sorrow
dependencies/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
apache-2.0
ddumont/darkstar
scripts/zones/Al_Zahbi/npcs/Suldiran.lua
14
1923
----------------------------------- -- Area: Al Zahbi -- NPC: Suldiran -- Type: NPC Quest -- @zone 48 -- @pos 41.658 -6.999 -42.528 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; require("scripts/globals/qu...
gpl-3.0
ddumont/darkstar
scripts/zones/Rabao/npcs/Spirit_Singer.lua
14
1034
---------------------------------- -- Area: Rabao -- NPC: Spirit Singer -- Type: Item Deliverer -- @zone 247 -- @pos 140.337 7.999 80.661 -- ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; require("scripts/zones/Rabao/TextIDs"); ----------------------------------- --...
gpl-3.0
emilkris33/ProjectPorcupine
Assets/StreamingAssets/LUA/Furniture.lua
3
6430
-- TODO: Figure out the nicest way to have unified defines/enums -- between C# and Lua so we don't have to duplicate anything. ENTERABILITY_YES = 0 ENTERABILITY_NO = 1 ENTERABILITY_SOON = 2 -------------------------------- UTILITY -------------------------------- function Clamp01( value ) if (value > 1) ...
gpl-3.0
ddumont/darkstar
scripts/zones/Cloister_of_Gales/bcnms/sugar-coated_directive.lua
30
1808
---------------------------------------- -- Area: Cloister of Gales -- BCNM: Sugar Coated Directive (ASA-4) ---------------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ---------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/qu...
gpl-3.0
Squeakz/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/Treasure_Coffer.lua
13
4795
----------------------------------- -- 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/keyitems"...
gpl-3.0
Squeakz/darkstar
scripts/globals/spells/cure_v.lua
26
4705
----------------------------------------- -- Spell: Cure V -- 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
ddumont/darkstar
scripts/globals/spells/hunters_prelude.lua
27
1520
----------------------------------------- -- Spell: Hunter's Prelude -- Gives party members ranged attack accuracy ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingChe...
gpl-3.0
jlcvp/otxserver
data/scripts/spells/monster/time_guardiann.lua
2
1810
local monsters = { [1] = {pos = Position(32810, 32664, 14)}, [2] = {pos = Position(32815, 32664, 14)} } local function functionBack(position, oldpos) local guardian = Tile(position):getTopCreature() local bool, diference, health = false, 0, 0 local spectators, spectator = Game.getSpectators(Position(32813, 32664,...
gpl-2.0
8devices/luci
modules/niu/luasrc/model/cbi/niu/traffic/portfw1.lua
49
2263
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- loca...
apache-2.0
ddumont/darkstar
scripts/zones/Southern_San_dOria/npcs/Amaura.lua
14
3069
----------------------------------- -- Area: Southern San d'Oria -- NPC: Amaura -- Involved in Quest: The Medicine Woman, To Cure a Cough -- @zone 230 -- @pos -85 -6 89 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("sc...
gpl-3.0
maddox/vlc
share/lua/intf/modules/host.lua
2
10271
--[==========================================================================[ host.lua: VLC Lua interface command line host module --[==========================================================================[ Copyright (C) 2007 the VideoLAN team $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> Thi...
gpl-2.0
hfjgjfg/seed42
bot/seedbot.lua
1
10016
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
ddumont/darkstar
scripts/globals/abilities/wizards_roll.lua
19
2754
----------------------------------- -- Ability: Wizard's Roll -- Enhances magic attack for party members within area of effect -- Optimal Job: Black Mage -- Lucky Number: 5 -- Unlucky Number: 9 -- Level 58 -- -- Die Roll |No BLM |With BLM -- -------- -------- ----------- -- 1 |+4 |+14 -- 2 ...
gpl-3.0
Squeakz/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Saluhwa.lua
13
1480
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Saluhwa -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/zones/Aht_Urhgan_White...
gpl-3.0
ddumont/darkstar
scripts/zones/Port_Bastok/npcs/Jabbar.lua
14
1822
----------------------------------- -- Area: Port Bastok -- NPC: Jabbar -- Type: Tenshodo Merchant -- Involved in Quests: Tenshodo Menbership -- @pos -99.718 -2.299 26.027 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
smartdevicelink/sdl_atf_test_scripts
test_scripts/RC/MultipleModules/ModulesAllocation/039_Default_multipleAccess_AUTO_ALLOW_userLocation_not_within_serviceArea.lua
1
4885
--------------------------------------------------------------------------------------------------- -- Proposal: -- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0221-multiple-modules.md -- Description: -- Check allocation/reallocation of RC module to mobile application in case: -- - RC modul...
bsd-3-clause
ddumont/darkstar
scripts/globals/mobskills/Wire_Cutter.lua
35
1160
--------------------------------------------------- -- Wire_Cutter -- Single-target damage (~500-1500), absorbed by 2 Utsusemi shadows. -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); -------------...
gpl-3.0
Squeakz/darkstar
scripts/zones/Bastok_Markets/npcs/Michea.lua
29
4408
----------------------------------- -- Area: Bastok Markets -- NPC: Michea -- Quest NPC -- Starts: Father Figure (100%) | The Elvaan Goldsmith (100%) -- Involed in: Fetichism | Where Two Paths Converge ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; --------------------...
gpl-3.0
ddumont/darkstar
scripts/zones/VeLugannon_Palace/mobs/Brigandish_Blade.lua
22
1276
----------------------------------- -- Area: VeLugannon Palace -- NM: Brigandish Blade ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onMobInitialize ----------------------------------- function onMobInitialize(mob) mob:setMobMod(MOBMOD_ADD_EFFECT,...
gpl-3.0
jlcvp/otxserver
data/monster/raids/deadeye_devious.lua
2
2931
local mType = Game.createMonsterType("Deadeye Devious") local monster = {} monster.description = "Deadeye Devious" monster.experience = 750 monster.outfit = { lookType = 151, lookHead = 115, lookBody = 76, lookLegs = 33, lookFeet = 117, lookAddons = 2, lookMount = 0 } monster.health = 1450 monster.maxHealth = ...
gpl-2.0
ddumont/darkstar
scripts/zones/Feretory/Zone.lua
32
1164
----------------------------------- -- -- Zone: Feretory -- ----------------------------------- package.loaded["scripts/zones/Marjami_Ravine/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Marjami_Ravine/TextIDs"); ----------------------------------- --...
gpl-3.0
Squeakz/darkstar
scripts/zones/Al_Zahbi/npcs/Krujaal.lua
13
1039
----------------------------------- -- Area: Al Zahbi -- NPC: Krujaal -- Type: Residence Renter -- @zone: 48 -- @pos 36.522 -1 -63.198 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; -------------------------...
gpl-3.0
ddumont/darkstar
scripts/globals/items/blind_bolt.lua
41
1057
----------------------------------------- -- ID: 18150 -- Item: Blind Bolt -- Additional Effect: Blindness ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ----------------------------------- ...
gpl-3.0
reveller/trafficserver
lib/luajit/dynasm/dasm_mips.lua
120
28080
------------------------------------------------------------------------------ -- DynASM MIPS module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _i...
apache-2.0
Squeakz/darkstar
scripts/zones/Southern_San_dOria/npcs/Taumila.lua
24
2350
----------------------------------- -- Area: Northern San d'Oria -- NPC: Taumila -- Starts and Finishes Quest: Tiger's Teeth (R) -- @pos -140 -5 -8 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sett...
gpl-3.0
Squeakz/darkstar
scripts/globals/effects/str_down.lua
34
1111
----------------------------------- -- -- EFFECT_STR_DOWN -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if ((target:getStat(MOD_STR) - effect:ge...
gpl-3.0
Squeakz/darkstar
scripts/zones/North_Gustaberg/npcs/Kuuwari-Aori_WW.lua
13
3336
----------------------------------- -- Area: North Gustaberg -- NPC: Kuuwari-Aori, W.W. -- Type: Outpost Conquest Guards -- @pos -584.687 39.107 54.281 106 ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/co...
gpl-3.0
yeewang/openwrt-luci
applications/luci-firewall/luasrc/model/cbi/firewall/forwards.lua
85
3942
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-2012 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
albmarvil/The-Eternal-Sorrow
Exes/media/LUA/Scripts/BulletDartCanibalSpecialScript.lua
2
1669
--Script que controla el paso por la puerta, herede de CScritpEntity class 'BulletDartCanibalSpecialScript' (CScriptEntity) --Atributo privado __init. Se trata del constructor de esa clase function BulletDartCanibalSpecialScript:__init() CScriptEntity.__init(self) self.rangeCanibal = 0 self.range2 = 0 end function...
apache-2.0
ddumont/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Adjutant.lua
14
1061
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Adjutant -- Type: Standard NPC -- @zone 94 -- @pos -67.819 -4.499 58.997 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ---...
gpl-3.0
Squeakz/darkstar
scripts/zones/Rolanberry_Fields/npcs/Field_Manual.lua
29
1061
----------------------------------- -- Area: Rolanberry Fields -- NPC: Field Manual ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/fieldsofvalor"); ----------------------------------- -- onTrigger Action ----------------------...
gpl-3.0
premek/pink
test/parser/gather.lua
1
1991
return { ink=[[ I looked at Monsieur Fogg * ... and I could contain myself no longer. 'What is the purpose of our journey, Monsieur?' 'A wager,' he replied. * * 'A wager!'[] I returned. He nodded. * * * 'But surely that is foolishness!' * * * 'A most serious matter then!' - - - He nodded again. * ...
mit
jlcvp/otxserver
data/monster/humans/barbarian_headsplitter.lua
2
3061
local mType = Game.createMonsterType("Barbarian Headsplitter") local monster = {} monster.description = "a barbarian headsplitter" monster.experience = 85 monster.outfit = { lookType = 253, lookHead = 115, lookBody = 86, lookLegs = 119, lookFeet = 113, lookAddons = 0, lookMount = 0 } monster.raceId = 333 monst...
gpl-2.0
Squeakz/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Gevarg.lua
13
1067
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Gevarg -- Type: Past Event Watcher -- @zone: 94 -- @pos -46.448 -6.312 212.384 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ni...
gpl-3.0
ddumont/darkstar
scripts/zones/Phomiuna_Aqueducts/npcs/_0rq.lua
14
1474
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: Oil lamp -- @pos -60 -23 60 27 ----------------------------------- package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Phomiuna_Aqueduct...
gpl-3.0
tdzl2003/seedplugins
plist/plist.lua
1
12597
--[[ Seed 插件 plist 包含文件 plist.lua - 提供plist文件的解析功能,plist图片数据的基本处理功能 依赖组件 xmlParser - 解析xml的seed插件 最后修改日期 2012-9-18 更新内容 2012-9-18: 利用缓存机制,提升解析动画plist的速度 2012-7-9: 修正了int有符号时,数据溢出的问题,并优先使用引擎提供相关转换函数 2012-7-3: 增加了分辨率适配的功能 2012-6-7: 修正了当plist文件中没有指定图片的具体路径时而引发的问题。 ...
bsd-3-clause
ddumont/darkstar
scripts/zones/Chamber_of_Oracles/TextIDs.lua
7
1386
-- 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 = 6385; -- Obtained: <item> GIL_OBTAINED = 6386; -- Obtained <number> gil KEYITEM_OBTAINED = 6388; -- Obtain...
gpl-3.0
jlcvp/otxserver
data/monster/giants/orclops_ravager.lua
2
3704
local mType = Game.createMonsterType("Orclops Ravager") local monster = {} monster.description = "an orclops ravager" monster.experience = 1100 monster.outfit = { lookType = 935, lookHead = 94, lookBody = 1, lookLegs = 80, lookFeet = 94, lookAddons = 0, lookMount = 0 } monster.raceId = 1320 monster.Bestiary = ...
gpl-2.0
smartdevicelink/sdl_atf_test_scripts
test_scripts/Policies/External_UCS/002_ATF_N_TC_LPT_Creation_PreloadedPT_with_external_consent_status_groups_struct.lua
1
3848
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [Policies] External UCS: PreloadedPT with "external_consent_status_groups" struct -- [Policies] External UCS: PreloadedPT without "external_consent_status_groups" struct -- -- Description: -- In case...
bsd-3-clause
Squeakz/darkstar
scripts/zones/North_Gustaberg/TextIDs.lua
15
1306
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED_TWICE = 6559; -- You cannot obtain the item <item>. ITEM_CANNOT_BE_OBTAINED = 6560; -- You cannot obtain the item <item>. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6564; -- You cannot obtain the #. Try tr...
gpl-3.0
nubick/QuikSharp
lib/QL/Robots/Begemot/begemot4free_fut.lua
6
26054
-- version 0.5.2 -- bug FIXed in TradeBid, TradeOffer, FindBidClosePrice -- 0.3 transaction sync mechanizm -- 0.3.1 reduce exess transactions -- 0.3.2 bug in change orders on update -- 0.4.0 moved from OnAllTrade to OnParam, no class in settings -- 0.4.1 new condition for close order -- 0.4.2 interface at settings load...
apache-2.0
smartdevicelink/sdl_atf_test_scripts
test_scripts/API/ButtonSubscription/SubscribeButton_UnsubscribeButton/019_SubscribeButton_Unexpected_disconnect_HMI_doesn_t_response_timeout.lua
1
3388
------------------------------------------------------------------------------------------------------------------------ -- Proposal: -- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0192-button_subscription_response_from_hmi.md ------------------------------------------------------------------...
bsd-3-clause
ff-kbu/fff-luci
modules/base/luasrc/i18n.lua
77
3182
--[[ LuCI - Internationalisation Description: A very minimalistic but yet effective internationalisation module FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
apache-2.0
ddumont/darkstar
scripts/zones/Behemoths_Dominion/mobs/Behemoth.lua
12
1907
----------------------------------- -- Area: Behemoth's Dominion -- HNM: Behemoth ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/status"); ----------------------------------- -- onMobInitialize ----------------------------------- ...
gpl-3.0