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/zones/Bastok_Markets_[S]/npcs/GentleTiger.lua | 31 | 1775 | ----------------------------------
-- Area: Bastok Markets [S]
-- NPC: GentleTiger
-- Type: Quest
-- @pos -203 -10 1
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
---... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/mobskills/feather_maelstrom.lua | 11 | 1082 | ---------------------------------------------
-- Feather Maelstrom
-- Sends a storm of feathers to a single target.
-- Additional effect: Bio & Amnesia
---------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
----------... | gpl-3.0 |
8devices/carambola2-luci | modules/base/luasrc/controller/admin/servicectl.lua | 76 | 1376 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 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$
]]--
mo... | apache-2.0 |
tcatm/luci | applications/luci-app-commands/luasrc/controller/commands.lua | 53 | 5756 | -- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.commands", package.seeall)
function index()
entry({"admin", "system", "commands"}, firstchild(), _("Custom Commands"), 80)
entry({"admin", "system", "commands", "dashboard"}, template(... | apache-2.0 |
madafaker/lol | bot/seedbot.lua | 1 | 11450 | 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 |
mozilla-services/data-pipeline | heka/sandbox/encoders/combine_telemetry_objects.lua | 6 | 1429 | -- 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/.
require "cjson"
local l = require "lpeg"
local grammar = (l.C"payload" + l.C"environment") * l.P"." * l.C(l.P(1)^1)
... | mpl-2.0 |
gvela024/kata | lua/spec/sorting/min_heap_spec.lua | 1 | 1878 | --[[-
Tree such that
- the data contained in each node is less than or equal to the node's children
- the binary tree is complete
- full tree is a tree which every node other than the leaves have two children
- complete tree is a tree which every level, except possibly the last, is filled and the nodes are as far l... | mit |
aqasaeed/w | plugins/ingroup.lua | 527 | 44020 | 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 |
CCAAHH/ma | plugins/ingroup.lua | 527 | 44020 | 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 |
chenweiyj/flappybird-simple | flappy.codea/Main.lua | 1 | 7579 | -- flappy
displayMode(FULLSCREEN)
supportedOrientations(PORTRAIT)
-- bug fix
-- if the bird is collided between the bottom pipe
-- abd the top pipe, next time the game begins, the
-- physics body of these pipes are not cleared.
-- although we cannot see them, the objects still are there.
-- 2014-03-24: it is fixed by ... | gpl-2.0 |
ArchonTeam/MohammadNBG | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
Fenix-XI/Fenix | scripts/zones/Southern_San_dOria/npcs/qm3.lua | 13 | 1518 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: The Picture ??? in Vemalpeau's house
-- Involved in Quests: Under Oath
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/weaponskills/tachi_kasha.lua | 9 | 1984 | -----------------------------------
-- Tachi Kasha
-- Great Katana weapon skill
-- Skill Level: 250
-- Paralyzes target. Damage varies with TP.
-- Paralyze effect duration is 60 seconds when unresisted.
-- In order to obtain Tachi: Kasha, the quest The Potential Within must be completed.
-- Will stack with Sneak Attack... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/spells/distract.lua | 12 | 1695 | -----------------------------------------
-- Spell: Distract
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
require("scripts/globals/utils")
-----------------------------------------
function onMagicCastingCheck(caster, target... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Windurst_Woods/npcs/Mourices.lua | 9 | 3101 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Mourices
-- Involved In Mission: Journey Abroad
-- !pos -50.646 -0.501 -27.642 241
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/npc_util")
------------------------... | gpl-3.0 |
tcatm/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-users.lua | 146 | 5623 | --[[
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 |
Fenix-XI/Fenix | scripts/zones/Cloister_of_Tides/npcs/Water_Protocrystal.lua | 13 | 1940 | -----------------------------------
-- Area: Cloister of Tides
-- NPC: Water Protocrystal
-- Involved in Quests: Trial by Water, Trial Size Trial by Water
-- @pos 560 36 560 211
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil;
-------------------------------------
r... | gpl-3.0 |
cartographer-project/cartographer_toyota_hsr | cartographer_toyota_hsr/configuration_files/toyota_hsr_3d.lua | 2 | 1802 | -- Copyright 2016 The Cartographer Authors
--
-- 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... | apache-2.0 |
Fenix-XI/Fenix | scripts/zones/Heavens_Tower/npcs/Chumimi.lua | 25 | 6406 | -----------------------------------
-- Area: Heaven's Tower
-- NPC: Chumimi
-- Starts and Finishes Quest: The Three Magi, Recollections
-- @pos 0.1 30 21 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/set... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Waughroon_Shrine/bcnms/rank_2_mission.lua | 26 | 2002 | -----------------------------------
-- Area: Waughroon Shrine
-- Name: Mission Rank 2
-- @pos -345 104 -260 144
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Waughroon_Shrine/TextIDs");
-------------------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Southern_San_dOria/npcs/Thadiene.lua | 13 | 2091 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Thadiene
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
requ... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/spells/noctohelix.lua | 26 | 1689 | --------------------------------------
-- Spell: Noctohelix
-- Deals dark damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/ma... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Ghelsba_Outpost/bcnms/holy_crest.lua | 9 | 1847 | -----------------------------------
-- Holy Crest
-- Ghelsba Outpost DRG quest battlefield
-- !pos -162 -11 78 140
-----------------------------------
local ID = require("scripts/zones/Ghelsba_Outpost/IDs")
require("scripts/globals/battlefield")
require("scripts/globals/keyitems")
require("scripts/globals/npc_util")
re... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Foret_de_Hennetiel/npcs/HomePoint#1.lua | 27 | 1282 | -----------------------------------
-- Area: Foret de Hennetiel
-- NPC: HomePoint#1
-- @pos -193 -0.5 -252 262
-----------------------------------
package.loaded["scripts/zones/Foret_de_Hennetiel/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Foret_de_Hennetiel/TextIDs");
require("scrip... | gpl-3.0 |
jmachuca77/ardupilot | libraries/AP_Scripting/tests/scripting_test.lua | 27 | 2059 | -- this is a script which is primarily intended to test the scripting bindings and be used with autotest
-- however it may be useful to some as a demo of how the API's can be used, this example is much less
-- heavily commented, and may require quite a bit more RAM to run in
local loop_time = 500 -- number of ms betwe... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Port_Windurst/npcs/Thubu_Parohren.lua | 44 | 1821 | -----------------------------------
-- Area: Port Windurst
-- NPC: Thubu Parohren
-- Type: Fishing Guild Master
-- @pos -182.230 -3.835 61.373 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
req... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/abilities/accession.lua | 12 | 1098 | -----------------------------------
-- Ability: Accession
-- Extends the effect of your next healing or enhancing white magic spell to party members within range.
-- MP cost and casting time are doubled.
-- Obtained: Scholar Level 40
-- Recast Time: Stratagem Charge
-- Duration: 1 compatible white magic spell or 60 sec... | gpl-3.0 |
persianTDT/TDT_BOT | plugins/expire.lua | 1 | 3606 | local function pre_process(msg)
4 local timetoexpire = 'unknown'
5 local expiretime = redis:hget ('expiretime', get_receiver(msg))
6 local now = tonumber(os.time())
7 if expiretime then
8 timetoexpire = math.floor((tonumber(expiretime) - tonumber(now)) / 86400) + 1
9 if tonumber("0") > tonumber(timet... | agpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Norg/npcs/Solby-Maholby.lua | 6 | 1231 | -----------------------------------
-- Area: Norg
-- NPC: Solby-Maholby
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Norg/IDs")
require("scripts/globals/shop")
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
local stock =
{
17395... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Mhaura/npcs/Graine.lua | 13 | 1626 | -----------------------------------
-- Area: Mhaura
-- NPC: Graine
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/shop");
-----------------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/weaponskills/shell_crusher.lua | 10 | 1614 | -----------------------------------
-- Shell Crusher
-- Staff weapon skill
-- Skill Level: 175
-- Lowers target's defense. Duration of effect varies with TP.
-- If unresisted, lowers target defense by 25%.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget.
-- Aligned with the Breeze Belt.
-- Element: N... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Open_sea_route_to_Al_Zahbi/npcs/Adeben.lua | 13 | 1135 | -----------------------------------
-- Area: Open_sea_route_to_Al_Zahbi
-- NPC: Adeben
-- Notes: Tells ship ETA time
-- @pos 0.340 -12.232 -4.120 46
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/zone... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Yuhtunga_Jungle/npcs/Blue_Rafflesia.lua | 15 | 6345 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Blue Rafflesia
-- Used in quest Even More Gullible Travels
-- @pos -468.876 -1 220.247 123 <many>
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Northern_San_dOria/npcs/Narsaude.lua | 13 | 1407 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Narsaude
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
requi... | gpl-3.0 |
soheildiscover/soheil | bot/utils.lua | 356 | 14963 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
lin-zhang/microblx_fmpc | lua/reflect.lua | 4 | 8459 | -- License: Same as LuaJIT
-- Version: beta 2 (2013-07-06)
-- Author: Peter Cawley (lua@corsix.org)
local ffi = require "ffi"
local bit = require "bit"
local reflect = {}
-- Relevant minimal definitions from lj_ctype.h
ffi.cdef [[
typedef struct CType {
uint32_t info;
uint32_t size;
uint16_t sib;
uin... | gpl-2.0 |
Giorox/AngelionOT-Repo | data/npc/scripts/Sam.lua | 2 | 1479 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCre... | gpl-3.0 |
Jezza/Lava | src/test/resources/BaseLibTest.lua | 1 | 7033 | -- $Header: //info.ravenbrook.com/project/jili/version/1.1/test/mnj/lua/BaseLibTest.lua#1 $
-- Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
-- All rights reserved.
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation fi... | lgpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Windurst_Walls/Zone.lua | 9 | 2709 | -----------------------------------
--
-- Zone: Windurst_Walls (239)
--
-----------------------------------
local ID = require("scripts/zones/Windurst_Walls/IDs")
require("scripts/globals/conquest")
require("scripts/globals/settings")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scri... | gpl-3.0 |
crunchuser/prosody-modules | mod_broadcast/mod_broadcast.lua | 32 | 1043 | local is_admin = require "core.usermanager".is_admin;
local allowed_senders = module:get_option_set("broadcast_senders", {});
local from_address = module:get_option_string("broadcast_from");
local jid_bare = require "util.jid".bare;
function send_to_online(message)
local c = 0;
for hostname, host_session in pairs(h... | mit |
devFRIND/TAEMNEW | plugins/helpsudo.lua | 2 | 2135 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY TAEMNEW ▀▄ ▄▀
▀▄ ▄▀ BY TAEMNEW (@illOlli) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY TAEMNEW ▀▄ ▄▀
▀▄ ▄▀ م المطور ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀... | gpl-2.0 |
gdewald/Sputter | dev/premake/premake/src/actions/xcode/xcode_common.lua | 2 | 26535 | --
-- xcode_common.lua
-- Functions to generate the different sections of an Xcode project.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
local xcode = premake.xcode
local tree = premake.tree
--
-- Return the Xcode build category for a given file, based on the file extension.
--
-- @param no... | mit |
DarkstarProject/darkstar | scripts/globals/abilities/super_jump.lua | 12 | 1039 | -----------------------------------
-- Ability: Super Jump
-- Performs a super jump.
-- Obtained: Dragoon Level 50
-- Recast Time: 3:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/pets")
require("scripts/globals/... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Waughroon_Shrine/bcnms/up_in_arms.lua | 30 | 1813 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: up in arms
-- BCNM60
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zone... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/The_Boyahda_Tree/npcs/Mandragora_Warden.lua | 9 | 1224 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: Mandragora Warden
-- Type: Mission NPC
-- !pos 81.981 7.593 139.556 153
-----------------------------------
local ID = require("scripts/zones/The_Boyahda_Tree/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scr... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/items/roll_of_buche_au_chocolat.lua | 11 | 1298 | -----------------------------------------
-- ID: 5550
-- Item: Roll of Buche Au Chocolat
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +3% Cap 13
-- Intelligence +2
-- HP Recovered while healing +1
-- MP Recovered while healing +4
-----------------------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/The_Eldieme_Necropolis/npcs/_5fq.lua | 13 | 2634 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: West Plate
-- @pos 150 -32 14 195
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- ... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/effects/last_resort.lua | 12 | 1102 | -----------------------------------
--
-- dsp.effect.LAST_RESORT
--
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEffectGain(target, effect)
target:addMod(dsp.mod.ATTP, 25 + target:getMerit(dsp.merit.LAST_RESORT_EFFECT))
target:addMod(d... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/mobskills/claw_storm.lua | 11 | 1066 | ---------------------------------------------
-- Claw Storm
--
-- Description: Slashes a single target in a threefold attack. Additional effect: Poison
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/globals/settings")
r... | gpl-3.0 |
marcel-sch/luci | applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdiface6.lua | 68 | 5949 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local util = require "luci.util"
local ip = require "luci.ip"
function write_float(self, section, value)
local n = tonumber(value)
if n ~= nil then
return Value.write(self, section, "%.1f" % n)
... | apache-2.0 |
DarkstarProject/darkstar | scripts/globals/mobskills/spirits_within.lua | 11 | 1794 | ---------------------------------------------
-- Spirits Within
--
-- Description: Delivers an unavoidable attack. Damage varies with HP and TP.
-- Type: Magical/Breath
-- Utsusemi/Blink absorb: Ignores shadows and most damage reduction.
-- Range: Melee
---------------------------------------------
require("scripts/glo... | gpl-3.0 |
facebokiii/ghosto | plugins/commit.lua | 13 | 12985 | -- Commits from https://github.com/ngerakines/commitment.
local doc = [[
/commit
Returns a commit message from whatthecommit.com.
]]
local triggers = {
'^/commit[@'..bot.username..']*'
}
local commits = {
"One does not simply merge into master",
"Merging the merge",
"Another bug bites the dust",
"de-misunder... | gpl-2.0 |
ld-test/versium | lua/versium/filedir.lua | 2 | 10288 | -----------------------------------------------------------------------------
-- Implements Versium API using using the local file system for storage.
--
-- (c) 2007, 2008 Yuri Takhteyev (yuri@freewisdom.org)
-- License: MIT/X, see http://sputnik.freewisdom.org/en/License
----------------------------------------------... | mit |
Fenix-XI/Fenix | scripts/globals/weaponskills/frostbite.lua | 11 | 1225 | -----------------------------------
-- Frostbite
-- Great Sword weapon skill
-- Skill Level: 70
-- Delivers an ice elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget.
-- Aligned with the Snow Belt.
-- Element: Ice
-- Modifiers: STR:20% ; INT:20%
-- 100%TP 200%TP 300%TP
-- 1.00 2.00 ... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/abilities/water_maneuver.lua | 35 | 1609 | -----------------------------------
-- Ability: Water Maneuver
-- Enhances the effect of water attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
jkprg/prosody-modules | mod_password_policy/mod_password_policy.lua | 32 | 1288 | -- Password policy enforcement for Prosody
--
-- Copyright (C) 2012 Waqas Hussain
--
--
-- Configuration:
-- password_policy = {
-- length = 8;
-- }
local options = module:get_option("password_policy");
options = options or {};
options.length = options.length or 8;
local st = require "util.stanza";
fu... | mit |
asdofindia/prosody-modules | mod_password_policy/mod_password_policy.lua | 32 | 1288 | -- Password policy enforcement for Prosody
--
-- Copyright (C) 2012 Waqas Hussain
--
--
-- Configuration:
-- password_policy = {
-- length = 8;
-- }
local options = module:get_option("password_policy");
options = options or {};
options.length = options.length or 8;
local st = require "util.stanza";
fu... | mit |
DarkstarProject/darkstar | scripts/zones/Mhaura/npcs/Take.lua | 9 | 4249 | -----------------------------------
-- Area: Mhaura
-- NPC: Take
-- Involved In Quest: RYCHARDE_THE_CHEF
-- Starts and finishes quest: Expertice
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/globals/settings");
local ID = require("scripts/zo... | gpl-3.0 |
crunchuser/prosody-modules | mod_pubsub_github/mod_pubsub_github.lua | 32 | 1455 | module:depends("http");
local st = require "util.stanza";
local json = require "util.json";
local formdecode = require "net.http".formdecode;
local pubsub_service = module:depends("pubsub").service;
local node = module:get_option("github_node", "github");
function handle_POST(event)
local data = json.decode(event.r... | mit |
DarkstarProject/darkstar | scripts/zones/Southern_San_dOria/npcs/Varchet.lua | 8 | 2244 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Varchet
-- !pos 116.484 -1 91.554 230
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
-----------------------------------
local ... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Castle_Oztroja/npcs/_47d.lua | 13 | 1051 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47d
-- @pos 20.000 24.168 -25.000 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs");
-------------------------... | gpl-3.0 |
AbolDalton/kia | plugins/botgroup.lua | 5 | 1645 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
Fenix-XI/Fenix | scripts/zones/Port_Jeuno/npcs/Veujaie.lua | 13 | 1043 | ----------------------------------
-- Area: Port Jeuno
-- NPC: Veujaie
-- Type: Item Deliverer
-- @zone: 246
-- @pos -20.349 7.999 -2.888
--
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
---------------------------... | gpl-3.0 |
yangboz/petulant-octo-dubstep | HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/Menu.lua | 5 | 1735 |
--------------------------------
-- @module Menu
-- @extend Layer
--------------------------------
-- @function [parent=#Menu] setEnabled
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#Menu] alignItemsVertically
-- @param self
---------------------------... | mit |
sundream/gamesrv | script/vote/votemgr.lua | 1 | 7298 | cvotemgr = class("cvotemgr",{
AGREE_VOTE = 0,
})
function cvotemgr:init()
self.type_id_vote = {}
self.type_pid_id = {}
self.voteid = 0
self:check_timeout()
end
function cvotemgr:gen_voteid()
if self.voteid >= MAX_NUMBER then
self.voteid = 0
end
self.voteid = self.voteid + 1
return self.voteid
end
function... | gpl-2.0 |
caioso/DynASM | dasm_x86.lua | 3 | 58970 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | mit |
dalvorsn/tests | data/global.lua | 1 | 16057 | dofile('data/compat.lua')
TRUE = true
FALSE = false
LUA_ERROR = false
LUA_NO_ERROR = true
THING_TYPE_PLAYER = 1
THING_TYPE_MONSTER = 2
THING_TYPE_NPC = 3
MAPMARK_TICK = 0
MAPMARK_QUESTION = 1
MAPMARK_EXCLAMATION = 2
MAPMARK_STAR = 3
MAPMARK_CROSS = 4
MAPMARK_TEMPLE = 5
MAPMARK_KISS = 6
MAPMARK_SHOVEL = 7
MAPMARK_SW... | gpl-2.0 |
tudor-berariu/activity-recognition | src/evaluate.lua | 1 | 1104 | --------------------------------------------------------------------------------
--- 1. Require needed packages
--------------------------------------------------------------------------------
--------------------------------------------------------------------------
--- Compute loss on test set
---------------------... | mit |
erfan1292/sezar3 | plugins/export_gban.lua | 82 | 2310 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
sundream/gamesrv | script/test/test_war2.lua | 1 | 2197 | local skynet = require "skynet"
require "script.playermgr"
require "script.net.war"
require "script.war.auxilary"
local function test(pid1,pid2,race1,cardrace1,race2,cardrace2)
local player1 = playermgr.getplayer(pid1)
local player2 = playermgr.getplayer(pid2)
player1.cardlib:clear()
player1.cardtablelib:clear()
... | gpl-2.0 |
FizzerWL/ExampleMods | GiftArmiesMod/Client_PresentMenuUI.lua | 1 | 2774 | require('Utilities');
function Client_PresentMenuUI(rootParent, setMaxSize, setScrollable, game)
Game = game;
SubmitBtn = nil;
setMaxSize(450, 280);
vert = UI.CreateVerticalLayoutGroup(rootParent);
if (game.Us == nil) then
UI.CreateLabel(vert).SetText("You cannot gift armies since you're not in the game");
... | mit |
letmefly/skynet | gameserver/proto/prototext.lua | 1 | 9400 | local cjson = require "cjson"
local prototext = [[
message userInfo_t {
// player 1, 2, 3
optional string userId = 1;
optional string nickname = 2;
// 1 male or 2 female
optional int32 sexType = 3;
optional string iconUrl = 4;
optional int32 level = 5;
optional int32 roomCardNum = 6;
... | mit |
ealegol/kolla-newton | docker/heka/plugins/decoders/os_horizon_apache_log.lua | 6 | 2256 | -- Copyright 2015 Mirantis, Inc.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to ... | apache-2.0 |
ElectricPrism/stargus | scripts/protoss/unit-protoss-photon-cannon.lua | 1 | 14227 | DefineAnimations("animations-protoss-photon-cannon", {
Still = {
"frame 0", "wait 125",
},
Attack = {
"unbreakable begin", "frame 2", "wait 2", "frame 1", "wait 2", "frame 3", "wait 2", "sound protoss-photon-cannon-attack", "attack",
"unbreakable end", "wait 5",
},
})
DefineConstruction("constru... | gpl-2.0 |
sundream/gamesrv | script/card/fire/card243003.lua | 1 | 2300 | --<<card 导表开始>>
local super = require "script.card.fire.card143003"
ccard243003 = class("ccard243003",super,{
sid = 243003,
race = 4,
name = "照明弹",
type = 101,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 0,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
mag... | gpl-2.0 |
padrinoo1/vagir2 | plugins/inrealm.lua | 287 | 25005 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
sundream/gamesrv | script/card/neutral/card164017.lua | 1 | 2447 | --<<card 导表开始>>
local super = require "script.card.init"
ccard164017 = class("ccard164017",super,{
sid = 164017,
race = 6,
name = "苦痛寺僧",
type = 201,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
magic_hurt_ad... | gpl-2.0 |
rastin45/waqer12 | plugins/groupmanager.lua | 14 | 16172 | -- data saved to data/moderation.json
do
local function gpadd(msg)
-- because sudo are always has privilege
if not is_sudo(msg) then
return nil
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
return 'Group is already added.'
end
-- create data array in mode... | gpl-2.0 |
ElectricPrism/stargus | scripts/ui.lua | 1 | 12813 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____/... | gpl-2.0 |
ashfinal/awesome-hammerspoon | init.lua | 1 | 18662 | hs.hotkey.alertDuration = 0
hs.hints.showTitleThresh = 0
hs.window.animationDuration = 0
-- Use the standardized config location, if present
custom_config = hs.fs.pathToAbsolute(os.getenv("HOME") .. '/.config/hammerspoon/private/config.lua')
if custom_config then
print("Loading custom config")
dofile( os.geten... | mit |
david-xiao/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/memberconfig.lua | 110 | 1317 | -- ------ extra functions ------ --
function cbi_add_interface(field)
uci.cursor():foreach("mwan3", "interface",
function (section)
field:value(section[".name"])
end
)
end
-- ------ member configuration ------ --
dsp = require "luci.dispatcher"
arg[1] = arg[1] or ""
m5 = Map("mwan3", translate("MWAN Membe... | gpl-2.0 |
facebokiii/facebookplug | plugins/help.lua | 337 | 5009 | do
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 |
tltneon/NutScript | gamemode/core/derma/cl_contextmenu.lua | 5 | 6394 |
local PANEL = {}
AccessorFunc( PANEL, "m_bHangOpen", "HangOpen" )
function PANEL:Init()
--
-- This makes it so that when you're hovering over this panel
-- you can `click` on the world. Your viewmodel will aim etc.
--
self:SetWorldClicker( true )
self.Canvas = vgui.Create( "DCategoryList", self )
self.m_bH... | mit |
movb/Algorithm-Implementations | Roman_Numerals/Lua/Yonaba/roman.lua | 26 | 1408 | -- Roman numerals encoding/decoding implementation
-- See: http://en.wikipedia.org/wiki/Roman_numerals
-- Roman numerals translation set for encoding
local romans = {
{1000, "M"}, {900, "CM"}, {500, "D"}, {400, "CD"},
{100, "C"}, {90, "XC"}, {50, "L"}, {40, "XL"},
{10, "X"}, {9, "IX"}, {5, "V"}, {4, ... | mit |
Lynx3d/tinker_tools | Defaults/Default_ItemDB.lua | 2 | 83048 | local Dta = select(2, ...)
Dta.Defaults.ItemDB =
{
-- Rivited Metal
["IFC4B896620716CD2,FB8EBAD1EF4F50C4,,,,,,"] =
{
name = "Building Block: Metal Square",
shape = "tile"
},
["IFC4B896518A1F73D,A9255B483DEAB8E9,,,,,,"] =
{
name = "Building Block: Metal Rectangle",
shape = "rectangle"
},
["IFC4B89636C1A... | bsd-3-clause |
sundream/gamesrv | script/card/fire/card244004.lua | 1 | 2334 | --<<card 导表开始>>
local super = require "script.card.fire.card144004"
ccard244004 = class("ccard244004",super,{
sid = 244004,
race = 4,
name = "冰冻陷阱",
type = 102,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 0,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
ma... | gpl-2.0 |
tomm/pioneer | data/libs/EquipSet.lua | 1 | 8517 | -- Copyright © 2008-2016 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local utils = import("utils")
local Serializer = import("Serializer")
--
-- Class: EquipSet
--
-- A container for a ship's equipment.
local EquipSet = utils.inherits(nil, "EquipSet... | gpl-3.0 |
dalvorsn/tests | data/spells/scripts/party/protect.lua | 15 | 1808 | local combat = createCombatObject()
local area = createCombatArea(AREA_CROSS5X5)
setCombatArea(combat, area)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CO... | gpl-2.0 |
Lynx3d/tinker_tools | Settings.lua | 2 | 5781 | local addon, Dta = ...
local Lang = Dta.Lang
-- Set English as Default and fallback
function addLangFallback(language)
setmetatable(Lang[language], { __index = Lang["English"] })
for k, v in pairs(Lang[language]) do
if type(v) == "table" then
setmetatable(v, { __index = Lang["English"][k] })
end
end
end
if n... | bsd-3-clause |
siggame/Joueur.lua | games/anarchy/warehouse.lua | 1 | 5094 | -- Warehouse: A typical abandoned warehouse that anarchists hang out in and can be bribed to burn down Buildings.
-- DO NOT MODIFY THIS FILE
-- Never try to directly create an instance of this class, or modify its member variables.
-- Instead, you should only be reading its variables and calling its functions.
local ... | mit |
v13inc/mal | lua/step5_tco.lua | 3 | 3041 | #!/usr/bin/env lua
local table = require('table')
local readline = require('readline')
local utils = require('utils')
local types = require('types')
local reader = require('reader')
local printer = require('printer')
local Env = require('env')
local core = require('core')
local List, Vector, HashMap = types.List, typ... | mpl-2.0 |
Alireza5928/new1 | plugins/del.lua | 22 | 1098 | local function delmsg (arg,data)
for k,v in pairs(data.messages_) do
tdcli.deleteMessages(v.chat_id_,{[0] = v.id_})
end
end
local function run(msg, matches)
if matches[1] == 'del' then
if msg.chat_id_:match("^-100") then
if is_owner(msg) or is_mod(msg) then
if tonumber(matches[2]) > 100 or tonu... | gpl-3.0 |
magnum357i/Magnum-s-Aegisub-Scripts | automation/autoload/mag.template.lua | 1 | 6496 | function lang_switch_keys(lang)
local in_lang = {}
local langs =
{
[1] = {lang_key = "tr", lang_name = "Türkçe", script_name = "Şablon"},
[2] = {lang_key = "en", lang_name = "English", script_name = "Template"}
}
local lang_list = {}
local script_name_list = {}
for i = 1, #langs do
lang_list[langs[... | mit |
david-xiao/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/member.lua | 111 | 1535 | -- ------ member configuration ------ --
ds = require "luci.dispatcher"
m5 = Map("mwan3", translate("MWAN Member Configuration"))
m5:append(Template("mwan/config_css"))
mwan_member = m5:section(TypedSection, "member", translate("Members"),
translate("Members are profiles attaching a metric and weight to an MWAN ... | gpl-2.0 |
REZATITAN/AntiSpamBot | plugins/stats.lua | 1 | 4013 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
yangboz/petulant-octo-dubstep | HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/ListView.lua | 1 | 4068 |
--------------------------------
-- @module ListView
-- @extend ScrollView
--------------------------------
-- @function [parent=#ListView] getIndex
-- @param self
-- @param #ccui.Widget widget
-- @return long#long ret (return value: long)
--------------------------------
-- @function [parent=#ListView] rem... | mit |
sundream/gamesrv | script/card/soil/card156014.lua | 1 | 2196 | --<<card 导表开始>>
local super = require "script.card.init"
ccard156014 = class("ccard156014",super,{
sid = 156014,
race = 5,
name = "猎豹",
type = 201,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
magic_hurt_adde... | gpl-2.0 |
HannesTuhkala/saitohud | src/SaitoHUD/lua/saitohud/modules/overlays.lua | 3 | 8341 | -- SaitoHUD
-- Copyright (c) 2009-2010 sk89q <http://www.sk89q.com>
-- Copyright (c) 2010 BoJaN
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 2 of the License, or
... | gpl-2.0 |
dalvorsn/tests | data/talkactions/scripts/info.lua | 10 | 1587 | function onSay(cid, words, param)
local player = Player(cid)
if not player:getGroup():getAccess() then
return true
end
local target = Player(param)
if not target then
player:sendCancelMessage("Player not found.")
return false
end
if target:getAccountType() > player:getAccountType() then
player:sendCan... | gpl-2.0 |
porya0909/anti-spam | plugins/plugins.lua | 64 | 6122 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.