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 |
|---|---|---|---|---|---|
Coethium/server-minetestforfun | mods/tsm_pyramids/nodes.lua | 4 | 1420 | local img = {"eye", "men", "sun"}
for i=1,3 do
minetest.register_node("tsm_pyramids:deco_stone"..i, {
description = "Sandstone with "..img[i],
tiles = {"default_sandstone.png^tsm_pyramids_"..img[i]..".png"},
is_ground_content = true,
groups = {unbreakable=1},
sounds = default.node_sound_stone_defaults(),
}... | unlicense |
UnknownX7/darkstar | scripts/zones/Attohwa_Chasm/mobs/Alastor_Antlion.lua | 9 | 1866 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Alastor Antlion
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
mixins = {require("scripts/mixins/families/antlion_ambush_noaggro")}
-----------------------------------
-- onMobInitialize Actio... | gpl-3.0 |
aqasaeed/test | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
wez2020/sseedd | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
NiMaDip/teleseed | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
sogandmusic/sogbot4 | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
maikuru23/darkstar | scripts/zones/North_Gustaberg_[S]/Zone.lua | 6 | 1299 | -----------------------------------
--
-- Zone: North_Gustaberg_[S] (88)
--
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/North_Gustaberg_[S]/TextIDs");
-----------------------------------
-... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Cloister_of_Storms/bcnms/carbuncle_debacle.lua | 6 | 1478 | -----------------------------------
-- Area: Cloister of Storms
-- BCNM: Carbuncle Debacle
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Cloister_of_Storms/TextIDs");
require("scripts/globals/settings")... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/spells/geohelix.lua | 26 | 1688 | --------------------------------------
-- Spell: Geohelix
-- Deals earth 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/mag... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Upper_Jeuno/npcs/Finnela.lua | 14 | 1040 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Finnela
-- Type: Standard NPC
-- @zone 244
-- @pos -51.880 -1 106.486
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
------------------------... | gpl-3.0 |
CuteOne/BadRotations | System/Misc/foodflaskpot.lua | 1 | 7971 | local _, br = ...
local agilityPotion = br.player.potion.wod.agilityBasic
local intellectPotion = br.player.potion.wod.intellectBasic
local strengthPotion = br.player.potion.wod.strengthBasic
local armorPotion = br.player.potion.wod.armorBasic
local agilityPotionBuff = br.player.potion.wod.buff.agility
local intellectP... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Robino-Mobino.lua | 17 | 1852 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Robino-Mobino
-- @pos -244 0 -401 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest"... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Balgas_Dais/bcnms/early_bird_catches_the_wyrm.lua | 30 | 1807 | -----------------------------------
-- Area: Balgas_Dais
-- Name: early bird catches the wyrm
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Southern_San_dOria/npcs/Leuveret.lua | 17 | 1613 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Leuveret
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/TextIDs");
require("scripts/globals... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/items/angler_stewpot.lua | 12 | 1879 | -----------------------------------------
-- ID: 5611
-- Item: Angler's Stewpot
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% (cap 200)
-- MP +10
-- HP Recoverd while healing 5
-- MP Recovered while healing 1
-- Accuracy +15% Cap 15
-- Ranged Accuracy 15% Ca... | gpl-3.0 |
sarumjanuch/prosody | util/array.lua | 2 | 3685 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local t_insert, t_sort, t_remove, t_concat
= table.insert, table.sort, table.remove, table.concat;
lo... | mit |
wland/quick3.6 | cocos/scripting/lua-bindings/auto/api/ControlSaturationBrightnessPicker.lua | 18 | 2571 |
--------------------------------
-- @module ControlSaturationBrightnessPicker
-- @extend Control
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ControlSaturationBrightnessPicker] getShadow
-- @param self
-- @return Sprite#Sprite ret (return value: cc.Sprite)
----------------... | mit |
maikuru23/darkstar | scripts/zones/Mhaura/npcs/Tya_Padolih.lua | 9 | 1425 | -----------------------------------
-- Area: Mhaura
-- NPC: Tya Padolih
-- Standard Merchant NPC
-- @pos -48 -4 30 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Mhaura/... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/items/cyclical_coalescence.lua | 12 | 1524 | -----------------------------------------
-- ID: 6225
-- Item: Cyclical coalescence
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- MP +30% (cap 110)
-- INT +7
-- MND +7
-- Magic Atk. Bonus +15
-- Lizard Killer +7
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
oanastratulat/Task | share/lua/playlist/bbc_co_uk.lua | 112 | 1468 | --[[
$Id$
Copyright © 2008 the VideoLAN team
Authors: Dominique Leuenberger <dominique-vlc.suse@leuenberger.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the Licens... | lgpl-2.1 |
wland/quick3.6 | quick/samples/touch/src/app/MyApp.lua | 8 | 1490 |
require("config")
require("framework.init")
local MyApp = class("MyApp", cc.mvc.AppBase)
local TESTS_LIST = {
"TestSingleTouch1Scene",
"TestSingleTouch2Scene",
"TestSingleTouch3Scene",
"TestSingleTouch4Scene",
"TestMultiTouches1Scene",
"TestMultiTouches2Scene",
"TestMultiTouches3Scene",
}... | mit |
maikuru23/darkstar | scripts/zones/Northern_San_dOria/npcs/Achantere_TK.lua | 6 | 4832 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Achatere, T.K.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run ... | gpl-3.0 |
alxhh/piratenluci | modules/admin-full/luasrc/controller/admin/index.lua | 1 | 1883 | --[[
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$
]]--
modu... | apache-2.0 |
MikePetullo/packages | net/acme/files/acme-cbi.lua | 11 | 5101 | --[[
LuCI - Lua Configuration Interface
Copyright 2016 Toke Høiland-Jørgensen <toke@toke.dk>
# 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 3 of the License, or (at your option... | gpl-2.0 |
UnknownX7/darkstar | scripts/zones/Morimar_Basalt_Fields/Zone.lua | 17 | 1243 | -----------------------------------
--
-- Zone: Morimar Basalt Fields
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Morimar_Basalt_Fields/TextIDs"] = nil;
require("scripts/zones/Morimar_Basalt_Fields/TextIDs");
-----------------------------------
-- onIni... | gpl-3.0 |
Coethium/server-minetestforfun | mods/ambience/init.lua | 7 | 7361 |
--= Ambience lite by TenPlus1 (16th April 2015)
local max_frequency_all = 1000 -- larger number means more frequent sounds (100-2000)
local SOUNDVOLUME = 1
-- compatibility with soundset mod
local get_volume
if (minetest.get_modpath("soundset")) ~= nil then
get_volume = soundset.get_gain
else
get_volume... | unlicense |
UnknownX7/darkstar | scripts/zones/Temenos/Zone.lua | 35 | 4896 | -----------------------------------
--
-- Zone: Temenos (37)
--
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Temenos/TextIDs");
require("scripts/globals/limbus");
-------------... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Spire_of_Holla/npcs/_0h1.lua | 14 | 1317 | -----------------------------------
-- Area: Spire_of_Holla
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Holla/TextIDs");
---------... | gpl-3.0 |
either1/prosody-modules | mod_auth_ldap/mod_auth_ldap.lua | 31 | 3900 | -- mod_auth_ldap
local new_sasl = require "util.sasl".new;
local lualdap = require "lualdap";
local function ldap_filter_escape(s) return (s:gsub("[*()\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
-- Config options
local ldap_server = module:get_option_string("ldap_server", "localhost");
local lda... | mit |
wangqi/gameserver | server/src/gensrc/lua/BseBattleStatusUpdate_pb.lua | 1 | 9852 | -- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BseBattleStatusUpdate_pb', package.seeall)
local ROLEINFO = protobuf.Descriptor();
local ROLEINFO_ROLENAME_FIELD = protobuf.FieldDescriptor();
local ROLEINFO_SESSIONID_FIELD = protobuf.FieldDescriptor();
local ROLEINFO_WIND_FIELD =... | apache-2.0 |
oanastratulat/Task | share/lua/modules/dkjson.lua | 26 | 25665 | --[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.1*
This module writes no global values, not even the module table.
Import it using
json = require ("dkjson")
Exported functions and values:
`json.encode (object [, state])`
--------------------------------
... | lgpl-2.1 |
maikuru23/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Rakih_Lyhall.lua | 38 | 1050 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Rakih Lyhall
-- Type: Standard NPC
-- @zone: 94
-- @pos -48.111 -4.5 69.712
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
SinaKK/telegram-bot | plugins/imin.lua | 5 | 1330 | -- Join an event!
-- Use !imin eventname
local _file_values = './data/events.lua'
function read_file_values( )
local f = io.open(_file_values, "r+")
-- If file doesn't exists
if f == nil then
-- Create a new empty table
print ('Created value file '.._file_values)
serialize_to_file({}, _file_values)... | gpl-2.0 |
UnknownX7/darkstar | scripts/globals/spells/drain_ii.lua | 21 | 1983 | -----------------------------------------
-- Spell: Drain II
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/settings");
-----------------------------------------
-- OnSpellCast
-----------... | gpl-3.0 |
kaeza/minetest_game | mods/beds/beds.lua | 18 | 2586 | -- Fancy shaped bed
beds.register_bed("beds:fancy_bed", {
description = "Fancy Bed",
inventory_image = "beds_bed_fancy.png",
wield_image = "beds_bed_fancy.png",
tiles = {
bottom = {
"beds_bed_top1.png",
"default_wood.png",
"beds_bed_side1.png",
"beds_bed_side1.png^[transformFX",
"default_wood.png"... | lgpl-2.1 |
alxhh/piratenluci | applications/luci-openvpn/luasrc/model/cbi/openvpn.lua | 1 | 2538 | --[[
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 |
maikuru23/darkstar | scripts/globals/items/cherry_muffin.lua | 37 | 1344 | -----------------------------------------
-- ID: 5653
-- Item: Cherry Muffin
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Intelligence 1
-- Magic % 10
-- Magic Cap 80
-- Agility -1
-----------------------------------------
require("scripts/globals/status");
--------------... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Qufim_Island/npcs/Singing_Blade_IM.lua | 8 | 2943 | -----------------------------------
-- Area: Qufim Island
-- NPC: Singing Blade, I.M.
-- Type: Border Conquest Guards
-- @pos 179.093 -21.575 -15.282 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conques... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/items/konigskuchen.lua | 12 | 1443 | -----------------------------------------
-- ID: 5614
-- Item: konigskuchen
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 8
-- Magic % 3
-- Magic Cap 13
-- Intelligence 2
-- hMP +1
-----------------------------------------
require("scripts/globals/status");
--------------------... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Kazham/npcs/Pahya_Lolohoiv.lua | 17 | 1373 | -----------------------------------
-- Area: Kazham
-- NPC: Pahya Lolohoiv
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
... | gpl-3.0 |
henry4k/apoapsis | third-party/lua-mock/test/mock/Mock.lua | 3 | 1249 | local ProgrammableFn = require 'test.mock.ProgrammableFn'
local Spy = require 'test.mock.Spy'
--- Combination of Spy and ProgrammableFn.
-- See #Spy and #ProgrammableFn for details.
local Mock =
{
mt = {},
prototype = {}
}
Mock.mt.__index = Mock.prototype
setmetatable(Mock.prototype, Mock.prototype)
setmetata... | mit |
maikuru23/darkstar | scripts/zones/Northern_San_dOria/npcs/Attarena.lua | 3 | 1948 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Attarena
-- Only sells when San d'Oria controlls Li'Telor Region
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
Tatuy/UAServer | data/actions/scripts/uatibia/fireworks2.lua | 1 | 4525 |
-- FIREWORKS MOD BY POMILLO(BLACKKNIGHT)
local function onUse1(p)
frompos1 = {x=p.frompos.x, y=p.frompos.y, z=p.frompos.z}
doSendMagicEffect(frompos1, p.n)
end
local function onUse2(p)
frompos2 = {x=p.frompos.x, y=p.frompos.y, z=p.frompos.z-1}
doSendMagicEffect(frompos2, p.n)
end
local function onUse3(p)
frompos3... | gpl-2.0 |
UnknownX7/darkstar | scripts/globals/items/forest_carp.lua | 12 | 1340 | -----------------------------------------
-- ID: 4289
-- Item: forest_carp
-- Food Effect: 30Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------... | gpl-3.0 |
thresheek/vlc | share/lua/meta/art/00_musicbrainz.lua | 71 | 3091 | --[[
Gets an artwork from the Cover Art Archive or Amazon
$Id$
Copyright © 2007-2010 the VideoLAN team
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
(at ... | gpl-2.0 |
UnknownX7/darkstar | scripts/zones/QuBia_Arena/mobs/Death_Clan_Destroyer.lua | 17 | 4261 | -----------------------------------
-- Area: QuBia_Arena
-- MOB: Death Clan Destroyer
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/QuBia_Arena/TextIDs");
require("scripts/globals/missions");
require("scripts/gl... | gpl-3.0 |
Coethium/server-minetestforfun | mods/hbarmor/init.lua | 8 | 2870 | hbarmor = {}
-- HUD statbar values
hbarmor.armor = {}
-- Stores if player's HUD bar has been initialized so far.
hbarmor.player_active = {}
-- HUD item ids
local armor_hud = {}
hbarmor.tick = 0.1
-- If true, the armor bar is hidden when the player does not wear any armor
hbarmor.autohide = true
--load custom sett... | unlicense |
either1/prosody-modules | mod_checkcerts/mod_checkcerts.lua | 29 | 2809 | local ssl = require"ssl";
local datetime_parse = require"util.datetime".parse;
local load_cert = ssl.loadcertificate;
local st = require"util.stanza"
-- These are in days.
local nag_time = module:get_option_number("checkcerts_notify", 7) * 86400;
if not load_cert then
module:log("error", "This version of LuaSec (%s)... | mit |
sarumjanuch/prosody | plugins/mod_auth_internal_hashed.lua | 3 | 4525 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local max = math.max;
local getAuthenticationDatabaseSHA1 = require "... | mit |
Coethium/server-minetestforfun | mods/plantlife_modpack/cavestuff/mapgen.lua | 9 | 1721 | --Map Generation Stuff
minetest.register_on_generated(function(minp, maxp, seed)
if maxp.y >= 2 and minp.y <= 0 then
-- Generate pebbles
local perlin1 = minetest.get_perlin(329, 3, 0.6, 100)
-- Assume X and Z lengths are equal
local divlen = 16
local divs = (maxp.x-minp.x)/divlen+1;
for divx=0,divs-1 do
... | unlicense |
maikuru23/darkstar | scripts/zones/Konschtat_Highlands/TextIDs.lua | 2 | 1160 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6376; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6379; -- Obtained: <item>.
GIL_OBTAINED = 6380; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6382; -- Obtained... | gpl-3.0 |
Tatuy/UAServer | data/npc/FORGOTTENSERVER-ORTS/scripts/Sinclair.lua | 1 | 1221 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | gpl-2.0 |
UnknownX7/darkstar | scripts/globals/effects/int_boost.lua | 34 | 1027 | -----------------------------------
--
-- EFFECT_INT_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_INT,effect:getPower());
end;
... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Signpost.lua | 6 | 1351 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Signpost
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Buburimu_Peninsula/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
pureexe/annot-player | lib/luaresolver/lua/luascript/sitelist/sina.lua | 5 | 2752 |
---[[by lostangel 20101117]]
---[[edit 20101117]]
--[[edit 20110314 for video tag]]
--[[edit lostangel 20110402 for subxml return struct]]
require "lalib"
--[[parse single sina url]]
function getTaskAttribute_sina ( str_url, str_tmpfile , pDlg)
if pDlg~=nil then
sShowMessage(pDlg, '¿ªÊ¼½âÎö..');
end
local int_a... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Windurst_Waters/npcs/Amagusa-Chigurusa.lua | 14 | 1468 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Amagusa-Chigurusa
-- Type: Standard NPC
-- @pos -28.746 -4.5 61.954 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requ... | gpl-3.0 |
rm-code/logivi | src/ui/FilePanel.lua | 1 | 5588 | local Utility = require( 'src.Utility' );
-- ------------------------------------------------
-- Module
-- ------------------------------------------------
local FilePanel = {};
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local MAX_VELOCITY = ... | mit |
maikuru23/darkstar | scripts/zones/Castle_Zvahl_Baileys/npcs/Switchstix.lua | 10 | 19009 | -----------------------------------
-- Area: Castle Zvahl Baileys
-- NPC: Switchstix
-- Type: Standard NPC
-- @pos 386.091 -13 -17.399 161
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
require("scripts/zones/Castle_Zvahl_Baileys/TextIDs");
require("scripts/... | gpl-3.0 |
Tatuy/UAServer | data/npc/FORGOTTENSERVER-ORTS/scripts/Emperor Kruzak.lua | 1 | 1633 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | gpl-2.0 |
maikuru23/darkstar | scripts/globals/spells/ice_carol.lua | 6 | 1498 | -----------------------------------------
-- Spell: Ice Carol
-- Increases ice resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---------------... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/spells/bluemagic/amplification.lua | 27 | 1938 | -----------------------------------------
-- Spell: Amplification
-- Enhances magic attack and magic defense
-- Spell cost: 48 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Water)
-- Blue Magic Points: 3
-- Stat Bonus: HP-5, MP+5
-- Level: 70
-- Casting Time: 7 seconds
-- Recast Time: 120 seconds
-- Duration: 90 ... | gpl-3.0 |
cuiqingwei1981/openwrt | feeds/luci/libs/nixio/lua/nixio/util.lua | 179 | 5824 | --[[
nixio - Linux I/O library for lua
Copyright 2009 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$
]]--
local... | gpl-2.0 |
UnknownX7/darkstar | scripts/globals/spells/firestorm.lua | 32 | 1180 | --------------------------------------
-- Spell: Firestorm
-- Changes the weather around target party member to "hot."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- ... | gpl-3.0 |
Tatuy/UAServer | data/actions/scripts/uatibia/other/doors.lua | 1 | 5278 | local function checkStackpos(item, position)
position.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
local thing = getThingFromPos(position)
position.stackpos = STACKPOS_TOP_FIELD
local field = getThingFromPos(position)
return (item.uid == thing.uid or thing.itemid < 100 or field.itemid == 0)
end
function on... | gpl-2.0 |
maikuru23/darkstar | scripts/globals/weaponskills/full_swing.lua | 6 | 1249 | -----------------------------------
-- Full Swing
-- Staff weapon skill
-- Skill Level: 200
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget & Thunder Gorget.
-- Aligned with the Flame Belt & Thunder Belt.
-- Element: None
-- Mod... | gpl-3.0 |
Tatuy/UAServer | data/actions/scripts/uatibia/sellitem2.lua | 1 | 5417 | --Selling items--
function onUse(cid, item, frompos, item2, topos)
if item.actionid == 3218 then
if doPlayerRemoveItem(cid, 2123, 1) then --Ring of the Sky
doPlayerGiveItem(cid, 2152, 20)
else
doPlayerSendCancel(cid, "You dont have any Ring of the Sky to sell.")
end
elseif item.actionid == 3219 then ... | gpl-2.0 |
telemachus/split | test/test-basics.lua | 2 | 1398 | #!/usr/bin/env lua
local t = require 'tapered'
package.path = '../src/?.lua;' .. package.path
local split = require 'split'.split
local s, got
s = ''
got = split(s, ',')
t.same(got, {}, "split('', <anything>) should return empty table.")
s = 'foobar'
got = split(s, ',')
t.is(#got, 1, "split('foobar', ',') should hav... | bsd-3-clause |
either1/prosody-modules | mod_mam/mod_mam.lua | 4 | 8237 | -- XEP-0313: Message Archive Management for Prosody
-- Copyright (C) 2011-2014 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local xmlns_mam = "urn:xmpp:mam:0";
local xmlns_delay = "urn:xmpp:delay";
local xmlns_forward = "urn:xmpp:forward:0";
local st = require "util.stanza";
local rsm = module:require "rsm"... | mit |
UnknownX7/darkstar | scripts/globals/mobskills/Miasma.lua | 33 | 1139 | ---------------------------------------------
-- Miasma
--
-- Description: Releases a toxic cloud on nearby targets. Additional effects: Slow + Poison + Plague
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows?
-- Range: Less than or equal to 10.0
-- Notes: Only used by Gulool Ja Ja.
----------------------... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Rabao/npcs/Shupah_Mujuuk.lua | 27 | 3754 | -----------------------------------
-- Area: Rabao
-- NPC: Shupah Mujuuk
-- Title Change NPC
-- @pos 12 8 20 247
-----------------------------------
require("scripts/globals/titles");
local title2 = { THE_IMMORTAL_FISHER_LU_SHANG , INDOMITABLE_FISHER , KUFTAL_TOURIST , ACQUIRER_OF_ANCIENT_ARCANUM , DESERT_HUNTER ,
... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Altar_Room/npcs/Hooknox.lua | 38 | 1033 | -----------------------------------
-- Area: Altar Room
-- NPC: Hooknox
-- Type: Standard NPC
-- @zone: 152
-- @pos -265.248 11.693 -102.547
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Altar_Room/TextIDs"] = nil;
----------------... | gpl-3.0 |
druerridge/the-maestros | games/TheMaestros.sdd/scripts/copterscript.lua | 1 | 1817 | local base = piece "base"
local body = piece "body"
--local turret = piece "turret"
--local gun = piece "gun"
local flare = piece "flare"
local arm = piece "arm base"
-- declares all the pieces we'll use in the script.
local SIG_AIM = 2
local RESTORE_DELAY = Spring.UnitScript.GetLongestReloadTime(unitID) * 2
-- picks... | gpl-2.0 |
UnknownX7/darkstar | scripts/zones/Apollyon/mobs/Fire_Elemental.lua | 119 | 2740 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
Coethium/server-minetestforfun | mods/nether/nether/weird_mapgen_noise.lua | 11 | 2080 | --V2
local function get_random(a, b, seed)
return PseudoRandom(math.abs(a+b*5)+seed)
end
local r_chs = {}
function nether_weird_noise(minp, fct, s, seed, range, scale)
if not r_chs[s] then
r_chs[s] = math.floor(s/3+0.5)
end
scale = scale or 15
local r_ch = r_chs[s]
local maxp = vector.add(minp, scale)
local... | unlicense |
adminomega/exterme-3 | bot/utils.lua | 646 | 23489 | 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 |
kararahmed/karar.dev | plugins/renk.lua | 10 | 5835 | --[[
# For More Information ....!
# Developer : Aziz < @devss_bot > #Dev
# our channel: @help_tele
]]
local function usernameinfo (user)
if user.username then
return '@'..user.username
end
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = use... | gpl-2.0 |
chihyaoma/Activity-Recognition-with-CNN-and-RNN | Temporal-ConvNet/run.lua | 1 | 3603 | -- Georgia Institute of Technology
-- CS8803DL Spring 2016 (Instructor: Zsolt Kira)
-- Final Project: Video Classification
-- Train a ConvNet on UCF101
-- TODO:
-- 1. cross-validation
-- 2.
-- modified by Min-Hung Chen
-- contact: cmhungsteve@gatech.edu
-- Last updated: 10/11/2016
require 'pl'
require 'trepl'
re... | mit |
cuiqingwei1981/openwrt | feeds/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_config.lua | 80 | 1153 | --[[
LuCI - Lua Configuration Interface
(c) 2009 Daniel Dickinson
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$
]]--
require("luci.controller.l... | gpl-2.0 |
Tatuy/UAServer | data/npc/FORGOTTENSERVER-ORTS/scripts/Fenech.lua | 1 | 2261 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | gpl-2.0 |
UnknownX7/darkstar | scripts/zones/Ordelles_Caves/npcs/Grounds_Tome.lua | 30 | 1098 | -----------------------------------
-- Area: Ordelle's Caves
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,... | gpl-3.0 |
gaojinhua/cocos2d-x-samples | samples/FantasyWarrior3D/src/cocos/cocos2d/DrawPrimitives.lua | 98 | 12024 |
local dp_initialized = false
local dp_shader = nil
local dp_colorLocation = -1
local dp_color = { 1.0, 1.0, 1.0, 1.0 }
local dp_pointSizeLocation = -1
local dp_pointSize = 1.0
local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor"
local targetPlatform = cc.Application:getInstance():getTargetPlatform()
lo... | mit |
Tatuy/UAServer | data/npc/FORGOTTENSERVER-ORTS/scripts/Tyrias.lua | 1 | 5839 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHan... | gpl-2.0 |
UnknownX7/darkstar | scripts/zones/Beadeaux/npcs/_43b.lua | 14 | 1763 | -----------------------------------
-- Area: Beadeaux
-- NPC: Jail Door
-- Involved in Quests: The Rescue
-- @pos 56 0.1 -23 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/East_Sarutabaruta/npcs/Taby_Canatahey.lua | 34 | 1067 | -----------------------------------
-- Area: East Sarutabaruta
-- NPC: Taby Canatahey
-- @pos -119.119 -4.106 -524.347 116
-----------------------------------
package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/East_Sarutabaruta/TextIDs... | gpl-3.0 |
wangqi/gameserver | server/src/gensrc/lua/BceGetValue_pb.lua | 1 | 1959 | -- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BceGetValue_pb', package.seeall)
local BCEGETVALUE = protobuf.Descriptor();
local BCEGETVALUE_ACTION_FIELD = protobuf.FieldDescriptor();
local BCEGETVALUE_KEYS_FIELD = protobuf.FieldDescriptor();
local BCEGETVALUE_VALUES_FIELD = pr... | apache-2.0 |
UnknownX7/darkstar | scripts/zones/Port_Jeuno/npcs/Chudigrimane.lua | 30 | 1173 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Chudigrimane
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
--------------------------... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Al_Zahbi/npcs/Zazarg.lua | 38 | 1028 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Zazarg
-- Type: Stoneserpent General
-- @zone: 48
-- @pos -41.675 -8 104.452
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
---------------------... | gpl-3.0 |
Pelagicore/lxc | src/lua-lxc/lxc.lua | 26 | 10159 | --
-- lua lxc module
--
-- Copyright © 2012 Oracle.
--
-- Authors:
-- Dwight Engen <dwight.engen@oracle.com>
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.... | lgpl-2.1 |
allwenandashi/a | plugins/abjad.lua | 13 | 4026 | local numbers = {}
numbers['ا'] = 1
numbers['ب'] = 2
numbers['ج'] = 3
numbers['د'] = 4
numbers['ه'] = 5
numbers['و'] = 6
numbers['ز'] = 7
numbers['ح'] = 8
numbers['ط'] = 9
numbers['ی'] = 10
numbers['ک'] = 20
numbers['ل'] = 30
numbers['م'] = 40
numbers['ن'] = 50
numbers['س'] = 60
numbers['ع'] = 70
numbers['ف'] = 80
numb... | gpl-2.0 |
nounoursheureux/MCServer | Server/Plugins/APIDump/Hooks/OnChunkGenerated.lua | 36 | 2855 | return
{
HOOK_CHUNK_GENERATED =
{
CalledWhen = "After a chunk was generated. Notification only.",
DefaultFnName = "OnChunkGenerated", -- also used as pagename
Desc = [[
This hook is called when world generator finished its work on a chunk. The chunk data has already
been generated and is about to be stor... | apache-2.0 |
maikuru23/darkstar | scripts/globals/effects/vit_down.lua | 19 | 1091 | -----------------------------------
--
-- EFFECT_VIT_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if((target:getStat(MOD_VIT) - effect... | gpl-3.0 |
maikuru23/darkstar | scripts/globals/weaponskills/sonic_thrust.lua | 6 | 1160 | -----------------------------------
-- Sonic Thrust
-- Polearm weapon skill
-- Skill Level: 300
-- Delivers an area attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Element: None
-- Modifiers: STR:30% ; DEX:30%
-- 100%TP 200%TP 300%TP
-- 3.00 3.25 3.50
--------------... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Tavnazian_Safehold/npcs/_0qa.lua | 17 | 2001 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: walnut door
-- Involved in mission 2-4
-- @pos 111 -41 41 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Kuftal_Tunnel/mobs/Phantom_Worm.lua | 23 | 1639 | -----------------------------------
-- Area: Kuftal Tunnel (173)
-- Mob: Phantom Worm
-----------------------------------
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, player, isKiller)
end;
-----------------------------------
-- onMobDespawn
----... | gpl-3.0 |
sarumjanuch/prosody | plugins/mod_carbons.lua | 2 | 3962 | -- XEP-0280: Message Carbons implementation for Prosody
-- Copyright (C) 2011 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local xmlns_carbons = "urn:xmpp:carbons:2";
local xmlns_forward = "urn:xmpp:forward:0";
local full_sessions, bare_se... | mit |
UnknownX7/darkstar | scripts/zones/The_Boyahda_Tree/npcs/Treasure_Coffer.lua | 13 | 5074 | -----------------------------------
-- Area: The Boyahada Tree
-- NPC: Treasure Coffer
-- @pos 27 6 144 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
... | gpl-3.0 |
Tatuy/UAServer | data/actions/scripts/uatibia/spellbook ato.lua | 1 | 5481 | function onUse(cid, item, frompos, item2, topos)
if getPlayerVocation(cid) == 1 then
doSetItemText(item.uid,"-Spell Book For Sorcerer:\nexiva - lvl 0 mana 20\nutevo lux -lvl 0 mana 20\nexura vita - lvl 18 mana 80\nexura gran - lvl 11 mana 40\nexura - lvl 9 mana 25\nexevo gran mas vis - lvl 40 mana 800\nexevo gran vis... | gpl-2.0 |
wangqi/gameserver | server/src/gensrc/lua/BseGuildCostAlert_pb.lua | 1 | 1779 | -- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BseGuildCostAlert_pb', package.seeall)
local BSEGUILDCOSTALERT = protobuf.Descriptor();
local BSEGUILDCOSTALERT_REMAIN_FIELD = protobuf.FieldDescriptor();
local BSEGUILDCOSTALERT_GUILDLEVEL_FIELD = protobuf.FieldDescriptor();
BSEG... | apache-2.0 |
UnknownX7/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 |
CuteOne/BadRotations | System/Lists/Specs.lua | 1 | 1215 | local _, br = ...
if br.lists == nil then
br.lists = {}
end
br.lists.spec = {
DEATHKNIGHT = {
Blood = 250,
Frost = 251,
Unholy = 252,
Initial = 1455,
},
DEMONHUNTER = {
Havoc = 577,
Vengeance = 581,
Initial = 1456,
},
DRUID = {
Balance = 102,
Feral = 103,
Guardian = 104,
Restoration = 105,
... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.