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 |
|---|---|---|---|---|---|
ddumont/darkstar | scripts/zones/Mhaura/Zone.lua | 13 | 2946 | -----------------------------------
--
-- Zone: Mhaura (249)
--
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/zone");
require("scripts/zones/Mhaura/TextIDs");
require("scripts/g... | gpl-3.0 |
kennethlombardi/moai-graphics | half-edge-mesh/editor/createStarfield.lua | 2 | 1115 | dofile("Pickle.lua")
layer1 = {
type = "Layer",
name = "starfield.lua",
visible = "true",
propContainer = {},
position = {x = 0, y = 0, z = 0},
scripts = {"starfield.lua"}
};
width = 1280;
height = 720;
objectCount = 10;
for i = 1, objectCount do
position = {};
scale = {x = 3, y = 3, z = 3};
local randx = m... | mit |
Squeakz/darkstar | scripts/zones/Caedarva_Mire/npcs/Nuimahn.lua | 13 | 1386 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Nuimahn
-- Type: Alzadaal Undersea Ruins
-- @pos -380 0 -381 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts... | gpl-3.0 |
rodoviario/wordgrinder | src/lua/_prologue.lua | 3 | 1421 | -- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
-- Urrgh, luajit's path defaults to all the wrong places. This is painfully
-- evil but does at least work.
if jit then
package.path = package.path ..
";/usr/share/lu... | mit |
ddumont/darkstar | scripts/globals/items/ear_of_grilled_corn.lua | 12 | 1288 | -----------------------------------------
-- ID: 4334
-- Item: ear_of_grilled_corn
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 10
-- Vitality 4
-- Health Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
------------------------... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Policies/External_UCS/External_Consent_ON/028_ATF_Policies_External_Consent_ON_same_notification_user_consent_allowed_externalConsentStatus_disallowed.lua | 1 | 7823 | require('user_modules/script_runner').isTestApplicable({ { extendedPolicy = { "EXTERNAL_PROPRIETARY" } } })
-------------------------------------- Requirement summary -------------------------------------------
-- [Policies] External UCS: externalConsentStatus vs. consentedFunctions priority
--
------------------------... | bsd-3-clause |
jorgifumi/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua | 48 | 2480 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
m = Map("network", translate("Interfaces"))
m.pageaction = false
m:section(SimpleSection).template = "admin_network/iface_overvi... | apache-2.0 |
jchuang1977/luci-1 | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua | 48 | 2480 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
m = Map("network", translate("Interfaces"))
m.pageaction = false
m:section(SimpleSection).template = "admin_network/iface_overvi... | apache-2.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/API/SDL_Passenger_Mode/commonPassengerMode.lua | 1 | 5037 | ---------------------------------------------------------------------------------------------------
-- Common module
---------------------------------------------------------------------------------------------------
--[[ General configuration parameters ]]
config.defaultProtocolVersion = 2
config.checkAllValidations =... | bsd-3-clause |
ddumont/darkstar | scripts/zones/Arrapago_Reef/npcs/_jic.lua | 27 | 3547 | -----------------------------------
-- Area: Arrapago Reef
-- Door: Runic Seal
-- @pos 36 -10 620 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("s... | gpl-3.0 |
jlcvp/otxserver | data/monster/aquatics/deepling_tyrant.lua | 2 | 3524 | local mType = Game.createMonsterType("Deepling Tyrant")
local monster = {}
monster.description = "a deepling tyrant"
monster.experience = 4200
monster.outfit = {
lookType = 442,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 861
monster.Bestiary = {
cl... | gpl-2.0 |
EnigmaTeam/EnigmaBot | plugins/9gag.lua | 1 | 1086 | do
local function get_9GAG()
local url = "http://api-9gag.herokuapp.com/"
local b,c = http.request(url)
if c ~= 200 then return nil end
local gag = json:decode(b)
-- random max json table size
local i = math.random(#gag)
local link_image = gag[i].src
local title = gag[i].title
if link_image:sub(0,2) ... | gpl-2.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/API/PutFile/002_PutFile_with_crc_MultiFrame.lua | 1 | 2085 | ---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0037-Expand-Mobile-putfile-RPC.md
-- User story:TBD
-- Use case:TBD
--
-- Requirement summary:
-- TBD
--
-- Description:
-- In case:
-- ... | bsd-3-clause |
jlcvp/otxserver | data/monster/quests/killing_in_the_name_of/deathbine.lua | 2 | 3023 | local mType = Game.createMonsterType("Deathbine")
local monster = {}
monster.description = "Deathbine"
monster.experience = 340
monster.outfit = {
lookType = 120,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 525
monster.maxHealth = 525
monster.race = ... | gpl-2.0 |
jlcvp/otxserver | data/monster/quests/in_service_of_yalahar/rift_lord.lua | 2 | 1755 | local mType = Game.createMonsterType("Rift Lord")
local monster = {}
monster.description = "a rift lord"
monster.experience = 0
monster.outfit = {
lookType = 12,
lookHead = 9,
lookBody = 19,
lookLegs = 9,
lookFeet = 85,
lookAddons = 0,
lookMount = 0
}
monster.health = 5
monster.maxHealth = 5
monster.race = "fi... | gpl-2.0 |
Squeakz/darkstar | scripts/zones/Port_Windurst/npcs/HomePoint#1.lua | 27 | 1275 | -----------------------------------
-- Area: Port Windurst
-- NPC: HomePoint#1
-- @pos -68.216 -4.000 111.761 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Windurst/TextIDs");
require("scripts/glob... | gpl-3.0 |
lemonkit/VisualCocos | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/GridAction.lua | 11 | 1389 |
--------------------------------
-- @module GridAction
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- brief Get the pointer of GridBase.<br>
-- return The pointer of GridBase.
-- @function [parent=#GridAction] getGrid
-- @param self
-- @return GridBase#GridBase ret (return value: ... | mit |
satanoff/testantispam | plugins/anti-flood.lua | 281 | 2422 | local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = 'I can\'t k... | gpl-2.0 |
theonlywild/telegram-bot | plugins/anti-flood.lua | 281 | 2422 | local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = 'I can\'t k... | gpl-2.0 |
Squeakz/darkstar | scripts/commands/delitem.lua | 7 | 1695 | ---------------------------------------------------------------------------------------------------
-- func: @delitem
-- desc: Deletes a single item held by a player, if they have it.
---------------------------------------------------------------------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/items/ice_brand.lua | 41 | 1056 | -----------------------------------------
-- ID: 16937
-- Ice Brand
-- Additional Effect: Ice Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
func... | gpl-3.0 |
jlcvp/otxserver | data/monster/raids/grorlam.lua | 2 | 2488 | local mType = Game.createMonsterType("Grorlam")
local monster = {}
monster.description = "Grorlam"
monster.experience = 2400
monster.outfit = {
lookType = 205,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 3000
monster.maxHealth = 3000
monster.race = "... | gpl-2.0 |
Squeakz/darkstar | scripts/globals/items/bowl_of_pomodoro_sauce.lua | 18 | 1182 | -----------------------------------------
-- ID: 5194
-- Item: Bowl of Pomodoro Sauce
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Intelligence 2
-- Mind 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Bostaunieux_Oubliette/Zone.lua | 19 | 2204 | -----------------------------------
--
-- Zone: Bostaunieux_Oubliette (167)
--
-----------------------------------
package.loaded["scripts/zones/Bostaunieux_Oubliette/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Bostaunieux_Oubliette/TextIDs");
requir... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/mobskills/Spirits_Within.lua | 17 | 1747 | ---------------------------------------------
-- Spirits Within
--
-- Description: Delivers an unavoidable attack. Damage varies with HP and TP.
-- Type: Magical/Breath
-- Ignores shadows and most damage reduction.
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Security/SSLHandshakeFlow/016_Non-Navi-Predefined_cert_valid_PTU_is_not_started.lua | 1 | 1947 | ---------------------------------------------------------------------------------------------------
-- Issues:
-- https://github.com/smartdevicelink/sdl_core/issues/2190
-- https://github.com/smartdevicelink/sdl_core/issues/2191
---------------------------------------------------------------------------------------... | bsd-3-clause |
cp1337/devland | data/npc/scripts/runes.lua | 1 | 14382 | local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Good bye... | gpl-2.0 |
satanoff/testantispam | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
yeewang/openwrt-luci | applications/luci-pbx/luasrc/model/cbi/pbx-google.lua | 146 | 5490 | --[[
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 |
smartdevicelink/sdl_atf_test_scripts | user_modules/IsReady_Template/testCasesForVR_IsReady.lua | 1 | 8732 | local testCasesForVR_IsReady = {}
require('atf.util')
local events = require("events")
--[[@InitHMI_onReady_without_VR_IsReady_available_false: replace original InitHMIOnReady from connecttest
--! without expect VR.IsReady
--! @parameters: exp_occur - times to wait VR.<<RPC>>
--! in case VR.IsReady(available = false)... | bsd-3-clause |
Squeakz/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Stone_Monument.lua | 13 | 1284 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos 320.755 -4.000 368.722 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
Adirelle/oUF | elements/raidtargetindicator.lua | 10 | 2510 | --[[
# Element: Raid Target Indicator
Handles the visibility and updating of an indicator based on the unit's raid target assignment.
## Widget
RaidTargetIndicator - A `Texture` used to display the raid target icon.
## Notes
A default texture will be applied if the widget is a Texture and doesn't have a texture se... | mit |
teto/home | config/nvim/lua/init-manual.lua | 1 | 82597 | -- vim: set noet fdm=marker fenc=utf-8 ff=unix sts=0 sw=4 ts=4 :
-- https://github.com/nanotee/nvim-lua-guide#using-meta-accessors
-- https://www.reddit.com/r/neovim/comments/o8dlwg/how_to_append_to_an_option_in_lua/
-- local configs = require'nvim_lsp/configs'
local has_telescope, telescope = pcall(require, 'telescope... | gpl-2.0 |
lemonkit/VisualCocos | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/CameraBackgroundColorBrush.lua | 9 | 1583 |
--------------------------------
-- @module CameraBackgroundColorBrush
-- @extend CameraBackgroundDepthBrush
-- @parent_module cc
--------------------------------
-- Set clear color<br>
-- param color Color used to clear the color buffer
-- @function [parent=#CameraBackgroundColorBrush] setColor
-- @param self
-- @p... | mit |
ddumont/darkstar | scripts/zones/RaKaznar_Inner_Court/Zone.lua | 33 | 1290 | -----------------------------------
--
-- Zone: Ra’Kanzar Inner Court (276)
--
-----------------------------------
package.loaded["scripts/zones/RaKaznar_Inner_Court/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/RaKaznar_Inner_Court/TextIDs");
-------... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/RuLude_Gardens/npcs/Perisa-Neburusa.lua | 13 | 1063 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Perisa-Neburusa
-- Type: Residence Renter
-- @zone: 243
-- @pos 54.651 8.999 -74.372
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Port_San_dOria/npcs/Coullave.lua | 17 | 1986 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Coullave
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/globals/quests");... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/spells/burn.lua | 17 | 1851 | -----------------------------------------
-- Spell: Burn
-- Deals fire damage that lowers an enemy's intelligence and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
--------------------------... | gpl-3.0 |
pvpgn/pvpgn-server | lua/extend/enum/messagebox.lua | 6 | 1435 | --[[
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.
]]--
-- https://github.com/pvpgn/pvpgn-server/issues/15
-- http://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx
--
-- use math_or(... | gpl-2.0 |
bjornbytes/graphql-lua | graphql/rules.lua | 1 | 18019 | local path = (...):gsub('%.[^%.]+$', '')
local types = require(path .. '.types')
local util = require(path .. '.util')
local schema = require(path .. '.schema')
local introspection = require(path .. '.introspection')
local function getParentField(context, name, count)
if introspection.fieldMap[name] then return intr... | mit |
ddumont/darkstar | scripts/zones/La_Theine_Plateau/mobs/Bloodtear_Baldurf.lua | 13 | 1668 | -----------------------------------
-- Area: La Theine Plateau
-- MOB: Bloodtear_Baldurf
-----------------------------------
require("scripts/globals/titles");
require("scripts/zones/La_Theine_Plateau/MobIDs");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
functio... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Beastmen_s_Banner.lua | 13 | 1028 | -----------------------------------
-- Area: Meriphataud_Mountains
-- NPC: Beastmen_s_Banner
-- @pos 592.850 -16.765 -518.802 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud_Mountains/Tex... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Port_Bastok/npcs/Numa.lua | 17 | 1786 | -----------------------------------
-- Area: Port Bastok
-- NPC: Numa
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
------------... | gpl-3.0 |
ddumont/darkstar | scripts/zones/PsoXja/npcs/_097.lua | 14 | 2875 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _097 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos 290.000 -1.925 -81.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
re... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Windurst_Walls/npcs/Hiwon-Biwon.lua | 17 | 3908 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Hiwon-Biwon
-- Involved In Quest: Making Headlines, Curses, Foiled...Again!?
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Crawlers_Nest/npcs/qm10.lua | 57 | 2127 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: qm10 (??? - Exoray Mold Crumbs)
-- Involved in Quest: In Defiant Challenge
-- @pos -83.391 -8.222 79.065 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Crawlers_Nest/npcs/qm10.lua | 57 | 2127 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: qm10 (??? - Exoray Mold Crumbs)
-- Involved in Quest: In Defiant Challenge
-- @pos -83.391 -8.222 79.065 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Kamihr_Drifts/Zone.lua | 17 | 1219 | -----------------------------------
--
-- Zone: Kamihr Drifts
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Kamihr_Drifts/TextIDs"] = nil;
require("scripts/zones/Kamihr_Drifts/TextIDs");
-----------------------------------
-- onInitialize
----------------... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/spells/chocobo_mazurka.lua | 27 | 1162 | -----------------------------------------
-- Spell: Chocobo Mazurka
-- Gives party members enhanced movement
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(cas... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Selbina/npcs/Gabwaleid.lua | 14 | 1534 | -----------------------------------
-- Area: Selbina
-- NPC: Gabwaleid
-- Involved in Quest: Riding on the Clouds
-- @pos -17 -7 11 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scrip... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Gustav_Tunnel/Zone.lua | 11 | 1655 | -----------------------------------
--
-- Zone: Gustav Tunnel (212)
--
-----------------------------------
package.loaded["scripts/zones/Gustav_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gustav_Tunnel/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/zone")... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/weaponskills/shadow_of_death.lua | 2 | 1254 | -----------------------------------
-- Shadow of Death
-- Scythe weapon skill
-- Skill Level: 70
-- Delivers a dark elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget & Aqua Gorget.
-- Aligned with the Snow Belt & Aqua Belt.
-- Element: Dark
-- Modifiers: STR:40% ; INT:40%
-- 100%TP 200%TP 3... | gpl-3.0 |
jlcvp/otxserver | data/monster/quests/cults_of_tibia/bosses/summons/voidshard.lua | 2 | 2358 | local mType = Game.createMonsterType("Voidshard")
local monster = {}
monster.description = "a voidshard"
monster.experience = 0
monster.outfit = {
lookType = 878,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 3500
monster.maxHealth = 3500
monster.race ... | gpl-2.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/API/KeyboardEnhancements/Capabilities/002_HMI_provides_valid_value_for_one_parameter_in_KeyboardCapabilities.lua | 1 | 2460 | ----------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0238-Keyboard-Enhancements.md
----------------------------------------------------------------------------------------------------
-... | bsd-3-clause |
Squeakz/darkstar | scripts/globals/mobskills/Sweeping_Flail.lua | 39 | 1067 | ---------------------------------------------------
-- Sweeping Flail
-- Family: Bahamut
-- Description: Spins around to deal physical damage to enemies behind user. Additional effect: Knockback
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: 20' cone
-- Notes: Used when someone pulls hate from... | gpl-3.0 |
ff-kbu/fff-luci | applications/luci-ahcp/luasrc/model/cbi/ahcp.lua | 36 | 3895 | --[[
LuCI - Lua Configuration Interface
Copyright 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
http://www.apache.org/licenses/LICENSE-2.0
$Id: init.lua... | apache-2.0 |
ddumont/darkstar | scripts/globals/items/serving_of_bison_steak.lua | 12 | 1781 | -----------------------------------------
-- ID: 5142
-- Item: serving_of_bison_steak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 6
-- Agility 1
-- Intelligence -3
-- Attack % 18
-- Attack Cap 90
-- Ranged ATT % 18
-- Ranged ATT Cap 90
-- Lizard Killer 5
---------------------... | gpl-3.0 |
jlcvp/otxserver | data/monster/quests/kilmaresh/xogixath.lua | 2 | 3395 | local mType = Game.createMonsterType("Xogixath")
local monster = {}
monster.description = "xogixath"
monster.experience = 22000
monster.outfit = {
lookType = 842,
lookHead = 3,
lookBody = 16,
lookLegs = 75,
lookFeet = 79,
lookAddons = 2,
lookMount = 0
}
monster.health = 28000
monster.maxHealth = 28000
monster.... | gpl-2.0 |
ddumont/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5ci.lua | 14 | 1496 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5ci (Gate of Light)
-- Involved In Mission: 3-2
-- @pos -331 0 139 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyite... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Nashmau/Zone.lua | 10 | 1803 | -----------------------------------
--
-- Zone: Nashmau (53)
--
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/settings");
-----------------------------------
-- onInitiali... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Policies/App_Permissions/022_ATF_No_Permission_Notification_To_HMI_In_First_App_Registration.lua | 1 | 5174 | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- Registering the app the 1st time initiate promting the User about the event
-- [RegisterAppInterface] Order of request/response/notifications on registering an application
--
-- Description:
-- When ... | bsd-3-clause |
lukego/snabb | src/lib/protocol/ipv4.lua | 7 | 5967 | module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
local header = require("lib.protocol.header")
local ipsum = require("lib.checksum").ipsum
local htons, ntohs, htonl, ntohl =
lib.htons, lib.ntohs, lib.htonl, lib.ntohl
-- TODO: generalize
local AF_INET = 2
local I... | apache-2.0 |
PlexChat/premake-core | tests/config/test_targetinfo.lua | 9 | 5055 | --
-- tests/config/test_targetinfo.lua
-- Test the config object's build target accessor.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("config_targetinfo")
local config = premake.config
--
-- Setup and teardown
--
local wks, prj
function suite.setup()
_ACTION... | bsd-3-clause |
morteza1378/SHIELD_POWER | plugins/ingroup.lua | 371 | 44212 | 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.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Port_Bastok/npcs/Zoby_Quhyo.lua | 36 | 1693 | -----------------------------------
-- Area: Port Bastok
-- NPC: Zoby Quhyo
-- Only sells when Bastok controlls Elshimo Lowlands
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Port_Bas... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Bastok_Mines/npcs/Explorer_Moogle.lua | 1 | 1647 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Explorer Moogle
--
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/teleports");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade... | gpl-3.0 |
PlexChat/premake-core | tests/project/test_config_maps.lua | 32 | 3971 | --
-- tests/project/test_config_maps.lua
-- Test mapping from workspace to project configurations.
-- Copyright (c) 2012-2014 Jason Perkins and the Premake project
--
local suite = test.declare("project_config_maps")
--
-- Setup and teardown
--
local wks, prj, cfg
function suite.setup()
wks = workspace("MyWor... | bsd-3-clause |
yylangchen/Sample_Lua | frameworks/cocos2d-x/templates/lua-template-runtime/src/main.lua | 5 | 1398 |
cc.FileUtils:getInstance():addSearchPath("src")
cc.FileUtils:getInstance():addSearchPath("res")
-- CC_USE_DEPRECATED_API = true
require "cocos.init"
-- cclog
local cclog = function(...)
print(string.format(...))
end
-- for CCLuaEngine traceback
function __G__TRACKBACK__(msg)
cclog("-------------------------... | mit |
yylangchen/Sample_Lua | frameworks/cocos2d-x/tests/lua-tests/src/PerformanceTest/PerformanceSpriteTest.lua | 14 | 16145 | local kMaxNodes = 50000
local kBasicZOrder = 10
local kNodesIncrease = 250
local TEST_COUNT = 7
local s = cc.Director:getInstance():getWinSize()
-----------------------------------
-- For test functions
-----------------------------------
local function performanceActions(sprite)
sprite:setPosition(cc.p(math.mod(ma... | mit |
xdemolish/darkstar | scripts/zones/Cape_Teriggan/npcs/Voranbo-Natanbo_WW.lua | 6 | 3025 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Voranbo-Natanbo, W.W.
-- Type: Outpost Conquest Guards
-- @pos -185 7 -63 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conque... | gpl-3.0 |
emmericp/libmoon | lua/lib/StackTracePlus/init.lua | 44 | 12501 | -- tables
local _G = _G
local string, io, debug, coroutine = string, io, debug, coroutine
-- functions
local tostring, print, require = tostring, print, require
local next, assert = next, assert
local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs
local error = error
assert(debug, "debug table must... | mit |
xdemolish/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Ix_aern_drg.lua | 2 | 2468 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NPC: Ix'aern (drg)
-----------------------------------
require("scripts/zones/The_Garden_of_RuHmet/MobIDs");
require( "scripts/globals/status" );
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function ... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/spells/utsusemi_ni.lua | 31 | 1528 | -----------------------------------------
-- Spell: Utsusemi: Ni
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kubhe_Ijyuhla.lua | 17 | 2421 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kubhe Ijyuhla
-- Standard Info NPC
-- @pos 23.257 0.000 21.532 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quest... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/tests/lua-tests/src/TerrainTest/TerrainTest.lua | 6 | 13924 | require "cocos.3d.3dConstants"
----------------------------------------
----TerrainSimple
----------------------------------------
local TerrainSimple = class("TerrainSimple", function ()
local layer = cc.Layer:create()
return layer
end)
function TerrainSimple:ctor()
-- body
self:init()
end
function... | apache-2.0 |
jarvissso3/jokerblue | system/bot.lua | 1 | 7728 | 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("./system/commands")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This functi... | gpl-2.0 |
mrbangi/mrbangi | plugins/Boobs.lua | 150 | 1613 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
hsiaoyi/Melo | cocos2d/tests/lua-tests/src/LightTest/LightTest.lua | 11 | 8467 | local LightTest = class("LightTest",function()
return cc.Layer:create()
end)
function LightTest:ctor()
local function onNodeEvent(event)
if event == "enter" then
self:init()
elseif event == "exit" then
self:unscheduleUpdate()
end
end
self:registerScriptHandler(onNodeEv... | apache-2.0 |
yylangchen/Sample_Lua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionManagerEx.lua | 10 | 1494 |
--------------------------------
-- @module ActionManagerEx
-- @extend Ref
-- @parent_module ccs
--------------------------------
-- @overload self, char, char, cc.CallFunc
-- @overload self, char, char
-- @function [parent=#ActionManagerEx] playActionByName
-- @param self
-- @param #char jsonName
-... | mit |
adventure-collective/lanterns | hardware/src/init.setup.lua | 1 | 3645 | print 'Entering setup mode'
dofile("config.lua")
CHIP_ID = string.format('%X', node.chipid())
cfg={}
cfg.ssid="bunch-setup-" .. CHIP_ID
cfg.pwd="password"
wifi.setmode(wifi.SOFTAP, false)
wifi.ap.config(cfg)
tmr.create():alarm(1000, tmr.ALARM_AUTO, function(cb_timer)
if wifi.ap.getip() == nil then
prin... | mit |
xdemolish/darkstar | scripts/zones/Kazham/npcs/Gatih_Mijurabi.lua | 21 | 1030 | -----------------------------------
-- Area: Kazham
-- NPC: Gatih Mijurabi
-- Type: Standard NPC
-- @zone: 250
-- @pos 58.249 -13.086 -49.084
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/plate_of_barnacle_paella.lua | 36 | 1576 | -----------------------------------------
-- ID: 5974
-- Item: Plate of Barnacle Paella
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 40
-- Vitality 5
-- Mind -1
-- Charisma -1
-- Defense % 25 Cap 150
-- Undead Killer 5
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/SpriteBatchNode.lua | 7 | 8618 |
--------------------------------
-- @module SpriteBatchNode
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
-- Append the child. <br>
-- param sprite A Sprite.
-- @function [parent=#SpriteBatchNode] appendChild
-- @param self
-- @param #cc.Sprite sprite
-- @return SpriteBatchNo... | mit |
Zarakichi/ObEngine | engine/Lib/Extlibs/pl/compat.lua | 5 | 5040 | ----------------
--- Lua 5.1/5.2/5.3 compatibility.
-- Ensures that `table.pack` and `package.searchpath` are available
-- for Lua 5.1 and LuaJIT.
-- The exported function `load` is Lua 5.2 compatible.
-- `compat.setfenv` and `compat.getfenv` are available for Lua 5.2, although
-- they are not always guaranteed to work... | mit |
xdemolish/darkstar | scripts/zones/Temenos/mobs/Temenos_Weapon.lua | 17 | 1285 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Temenos_Weapon
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------... | gpl-3.0 |
Javaxio/BadRotations | System/UI/Elements/Section.lua | 2 | 2798 | local DiesalGUI = LibStub("DiesalGUI-1.0")
function br.ui:createSection(parent, sectionName, tooltip)
local newSection = DiesalGUI:Create('AccordianSection')
local parent = parent
newSection:SetParentObject(parent)
newSection:ClearAllPoints()
-- Calculate Position
if #parent.children == nil th... | gpl-3.0 |
yangchaogit/ABTestingGateway | lib/abtesting/userinfo/ipParser.lua | 25 | 1259 |
local _M = {
_VERSION = '0.01'
}
local ffi = require("ffi")
ffi.cdef[[
struct in_addr {
uint32_t s_addr;
};
int inet_aton(const char *cp, struct in_addr *inp);
uint32_t ntohl(uint32_t netlong);
char *inet_ntoa(struct in_addr in);
uint32_t htonl(uint32_t hostlong);
]]
local C = ffi.C
local ip2long = funct... | mit |
xdemolish/darkstar | scripts/globals/items/dish_of_spaghetti_marinara.lua | 35 | 1471 | -----------------------------------------
-- ID: 5719
-- Item: dish_of_spaghetti_marinara
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 15 (cap 120)
-- Vitality 2
-- Defense 5
-- Store TP 7
-----------------------------------------
require("scripts/globals/status");
-... | gpl-3.0 |
lighter-cd/premake4-mobile | tests/actions/codeblocks/codeblocks_files.lua | 21 | 1664 | --
-- tests/actions/codeblocks/codeblocks_files.lua
-- Validate generation of files block in CodeLite C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.codeblocks_files = { }
local suite = T.codeblocks_files
local codeblocks = premake.codeblocks
--
-- Setup
--
local sln, prj
f... | mit |
xdemolish/darkstar | scripts/zones/Kazham/npcs/Hari_Pakhroib.lua | 19 | 2828 | -----------------------------------
-- 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... | gpl-3.0 |
PlexChat/premake-core | tests/api/test_list_kind.lua | 9 | 1617 | --
-- tests/api/test_list_kind.lua
-- Tests the list API value type.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
T.api_list_kind = {}
local suite = T.api_list_kind
local api = premake.api
--
-- Setup and teardown
--
function suite.setup()
api.register {
name = "testapi",
kind = "strin... | bsd-3-clause |
lukego/snabb | lib/luajit/dynasm/dasm_arm.lua | 15 | 34598 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | apache-2.0 |
sdgdsffdsfff/redis-storage | deps/lua/dynasm/dynasm.lua | 15 | 30945 | ------------------------------------------------------------------------------
-- DynASM. A dynamic assembler for code generation engines.
-- Originally designed and implemented for LuaJIT.
--
-- Copyright (C) 2005-2012 Mike Pall. All rights reserved.
-- See below for full copyright notice.
----------------------------... | bsd-3-clause |
bitdewy/cegui | cegui/src/ScriptModules/Lua/support/tolua++bin/lua/function.lua | 14 | 20809 | -- tolua: function class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id$
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements,... | mit |
kaadmy/pixture | mods/welcome/init.lua | 1 | 2233 | --
-- Welcome mod
-- By Kaadmy, for Pixture
--
welcome = {}
welcome.rules = {
"Welcome!",
"",
"Rules:",
"1. No swearing.",
"2. No griefing.",
"3. No spamming."
}
function welcome.get_formspec(name)
if not minetest.settings:get_bool("welcome_enable") then
minetest.chat_send_player(name, "We... | lgpl-2.1 |
xdemolish/darkstar | scripts/zones/Port_Windurst/npcs/Chipmy-Popmy.lua | 17 | 1291 | -----------------------------------
-- Area: Port Windurst
-- NPC: Chipmy-Popmy
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
-----------------------------------
-- onTrade Action
-----------------------------------
function o... | gpl-3.0 |
7khat/7khat | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
midelic/DIY-Multiprotocol-TX-Module | Lua_scripts/Graupner HoTT.lua | 2 | 5771 | ---- #########################################################################
---- # #
---- # Copyright (C) OpenTX #
-----# #
----... | gpl-3.0 |
lukego/snabb | lib/ljsyscall/syscall/freebsd/c.lua | 24 | 1298 | -- This sets up the table of C functions
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local abi = require ... | apache-2.0 |
Zarakichi/ObEngine | engine/Lib/Toolkit/Functions/package.lua | 5 | 4096 | local Color = require("Lib/StdLib/ConsoleColor");
local Route = require("Lib/Toolkit/Route");
local Style = require("Lib/Toolkit/Stylesheet");
local Package = obe.Package;
local Functions = {};
function getPackageList()
local parser = Vili.ViliParser.new();
parser:parseFile("Package/Packages.vili");
local... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.