repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
brunominervino/forgottenserver
data/chatchannels/scripts/help.lua
49
3126
local CHANNEL_HELP = 7 local muted = Condition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT) muted:setParameter(CONDITION_PARAM_SUBID, CHANNEL_HELP) muted:setParameter(CONDITION_PARAM_TICKS, 3600000) function onSpeak(player, type, message) local playerAccountType = player:getAccountType() if player:getLevel() =...
gpl-2.0
MNKgod/darkstar
scripts/zones/Ship_bound_for_Selbina/npcs/Bhagirath.lua
31
1930
----------------------------------- -- Area: Ship_bound_for_Selbina -- NPC: Bhagirath -- Notes: Tells ship ETA time -- @pos 0.278 -14.707 -1.411 220 ----------------------------------- package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil; require("scripts/zones/Ship_bound_for_Selbina/TextIDs"); --...
gpl-3.0
nekrozar/ygopro
gframe/premake4.lua
2
1661
include "lzma/." include "spmemvfs/." project "ygopro" kind "WindowedApp" files { "**.cpp", "**.cc", "**.c", "**.h" } excludes { "lzma/**", "spmemvfs/**" } includedirs { "../ocgcore" } links { "ocgcore", "clzma", "cspmemvfs", "Irrlicht", "freetype", "sqlite3", "lua" , "event" } configuration ...
gpl-2.0
MNKgod/darkstar
scripts/zones/Northern_San_dOria/npcs/Telmoda.lua
17
1622
----------------------------------- -- Area: Northern San d'Oria -- NPC: Telmoda -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"...
gpl-3.0
MNKgod/darkstar
scripts/globals/status.lua
2
77120
------------------------------------ -- -- STATUSES AND MODS -- -- Contains variable-ized definitions of things like core enums for use in lua scripts. ------------------------------------ ------------------------------------ -- Job IDs ------------------------------------ JOB_NON = 0 JOB_WAR = 1 JOB_MNK = 2 JOB_WHM...
gpl-3.0
pouria3463/fashist
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
teleblue/telebrownnew
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
AccroGaming/Accro-DarkRP
DarkRP/gamemode/fadmin/playeractions/message/cl_init.lua
1
2205
local function MessageGui(ply) if not FAdmin.Messages or not FAdmin.Messages.MsgTypes then return end local frame = vgui.Create("DFrame") frame:SetTitle("Send message") frame:SetSize(350, 170) frame:Center() frame:SetVisible(true) frame:MakePopup() local MsgType = 2 local i = 0 local TypeButtons = {} loca...
mpl-2.0
Cavitt/otclient_mapgen
modules/client/client.lua
1
2987
local musicFilename = "/sounds/startup" function setMusic(filename) musicFilename = filename if not g_game.isOnline() then musicChannel:stop() musicChannel:enqueue(musicFilename, 3) end end function reloadScripts() g_textures.clearCache() g_modules.reloadModules() local script = '/' .. g_app.get...
mit
ejoncas/kong
kong/tools/database_cache.lua
5
2655
local cjson = require "cjson" local CACHE_KEYS = { APIS = "apis", CONSUMERS = "consumers", PLUGINS = "plugins", BASICAUTH_CREDENTIAL = "basicauth_credentials", KEYAUTH_CREDENTIAL = "keyauth_credentials", OAUTH2_CREDENTIAL = "oauth2_credentials", OAUTH2_TOKEN = "oauth2_token", ACLS = "acls", SSL = "ss...
apache-2.0
vahed2719/vahed
plugins/banhammer.lua
175
5896
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
MNKgod/darkstar
scripts/globals/spells/bluemagic/memento_mori.lua
18
1335
----------------------------------------- -- Spell: Memento Mori -- Enhances magic attack -- Spell cost: 46 MP -- Monster Type: Undead -- Spell Type: Magical (Ice) -- Blue Magic Points: 4 -- Stat Bonus: INT+1 -- Level: 62 -- Casting Time: 6 seconds -- Recast Time: 2 minutes -- -- Combos: Magic Attack Bonus...
gpl-3.0
Yukkurigame/Yukkuri
bin/data/scripts/environment.lua
1
2981
Environment = { day_length = 240000, day_period = 200, latitude = 10, longitude = 130, gtm_delta = 11, time = 10, day = 340, } Environment.__index = Environment local RADIANS = math.pi / 180 function Environment:setup(params) self.latitude = Map.latitude() self.longitude = Map.longitude() self.gtm_delta = ...
mit
MNKgod/darkstar
scripts/globals/items/wild_onion.lua
35
1193
----------------------------------------- -- ID: 4387 -- Item: wild_onion -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 4 -- Vitality -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCh...
gpl-3.0
MNKgod/darkstar
scripts/zones/Northern_San_dOria/npcs/HomePoint#4.lua
19
1211
----------------------------------- -- Area: Northern San dOria -- NPC: HomePoint#4 -- @pos: -132 12 195 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Northern_San_dOria/TextIDs"); require("scripts...
gpl-3.0
eyohansa/wesnoth
data/ai/micro_ais/cas/ca_bottleneck_attack.lua
26
3244
local AH = wesnoth.require "ai/lua/ai_helper.lua" local H = wesnoth.require "lua/helper.lua" local ca_bottleneck_attack = {} function ca_bottleneck_attack:evaluation(ai, cfg, self) local attackers = AH.get_units_with_attacks { side = wesnoth.current.side, { "filter_adjacent", { { "filt...
gpl-2.0
mohammad25253/alfred
plugins/anti_spam.lua
435
3886
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
aminsa2000/appfreebazar1
plugins/anti_spam.lua
435
3886
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
timm/16
lua/_old/11/cells.lua
1
2296
---------------------------------------------------------------------- -- This file is part of LURE. -- -- LURE 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...
unlicense
Cavitt/otclient_mapgen
modules/gamelib/game.lua
2
2951
function g_game.getRsa() return G.currentRsa end function g_game.findPlayerItem(itemId, subType) local localPlayer = g_game.getLocalPlayer() if localPlayer then for slot = InventorySlotFirst, InventorySlotLast do local item = localPlayer:getInventoryItem(slot) if item and item...
mit
MNKgod/darkstar
scripts/globals/items/ojo_rice_ball.lua
51
1472
----------------------------------------- -- ID: 5929 -- Item: Ojo Rice Ball -- Food Effect: 60 Mins, All Races ----------------------------------------- -- HP +50 -- Dexterity +5 -- Vitality +5 -- Character +5 -- Effect with enhancing equipment (Note: these are latents on gear with the effect) -- Attack +60 -- Defense...
gpl-3.0
MNKgod/darkstar
scripts/zones/Southern_San_dOria/npcs/Estiliphire.lua
29
1068
----------------------------------- -- Area: Southern Sandoria -- NPC: Estiliphire -- Type: Event Sideshow NPC -- @zone: 230 -- @pos -41.550 1.999 -2.845 -- ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- ------------------...
gpl-3.0
Yukkurigame/Yukkuri
bin/data/scripts/events/unit_dynamic.lua
1
2775
require("data/scripts/events/events") UnitDynamic = class(Events) function UnitDynamic:init(unit) self:super( ):init(unit) unit:storage().foodTypes = bit.bor(constants.utPlant, constants.utCorpse) end function UnitDynamic:action(unit) local ubuild = unit:getBuild() ubuild:tire() end function UnitDynamic:att...
mit
MNKgod/darkstar
scripts/zones/Quicksand_Caves/npcs/Grounds_Tome.lua
34
1142
----------------------------------- -- Area: Quicksand Caves -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade...
gpl-3.0
MNKgod/darkstar
scripts/zones/Port_San_dOria/npcs/Prietta.lua
5
1640
----------------------------------- -- Area: Port San d'Oria -- NPC: Prietta -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("scripts/zones/Port_San_dOria/TextIDs"); ----------------------------------- -- onTrade Action --------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Port_San_dOria/npcs/HomePoint#2.lua
17
1255
----------------------------------- -- Area: Port San dOria -- NPC: HomePoint#2 -- @pos 48 -12.000 -105 232 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Port_San_dOria/TextIDs"); require("script...
gpl-3.0
WibbenZ/forgottenserver
data/npc/lib/npcsystem/keywordhandler.lua
3
4996
-- Advanced NPC System by Jiddo if not KeywordHandler then KeywordNode = { keywords = nil, callback = nil, parameters = nil, children = nil, parent = nil } -- Created a new keywordnode with the given keywords, callback function and parameters and without any childNodes. function KeywordNode:new(keys, fu...
gpl-2.0
MNKgod/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Balakaf.lua
37
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Balakaf -- Type: Standard NPC -- @pos 25.505 -6.999 126.478 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whi...
gpl-3.0
stevehaskew/wireshark-luascripts
onq.lua
1
8317
-- Steve's attempt to build an OnQ Dissector -- Declarations onq_proto = Proto("onq","OnQ PMS Protocol") -- Easiest way to change the port onq_protoport = 40000 --Add more fields as we go F_op = ProtoField.string("onq.op","Operation") F_rn = ProtoField.string("onq.room","Room Number") F_gn = ProtoField.string("onq.g...
gpl-2.0
sujeet14108/luci
applications/luci-app-ahcp/luasrc/controller/ahcp.lua
73
1282
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.ahcp", package.seeall) function index() if not nixio.fs.access("/etc/config/ahcpd") then return end entry({"admin", "network", "ahcpd"}, cbi("ahcp"), _("AHCP Server"), 90) entry({...
apache-2.0
MNKgod/darkstar
scripts/globals/mobskills/Floodlight.lua
19
1224
--------------------------------------------------- -- Floodlight -- -- Description: ~300 magic damage, Flash, Blind and Silence, ignores Utsusemi -- Type: Magical -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/glob...
gpl-3.0
MNKgod/darkstar
scripts/zones/Kazham/npcs/Khau_Mahiyoeloh.lua
15
1102
----------------------------------- -- Area: Kazham -- NPC: Khau Mahiyoeloh -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action -------------------------...
gpl-3.0
Adirelle/AdiButtonAuras
config/Config.lua
1
3345
--[[ AdiButtonAuras - Display auras on action buttons. Copyright 2013-2018 Adirelle (adirelle@gmail.com) All rights reserved. This file is part of AdiButtonAuras. AdiButtonAuras 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 Softwa...
gpl-3.0
punisherbot/yyy
plugins/MAP.lua
87
1499
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
AccroGaming/Accro-DarkRP
DarkRP/entities/weapons/stunstick/shared.lua
1
6125
if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then SWEP.PrintName = "Stun Stick" SWEP.Slot = 0 SWEP.SlotPos = 5 SWEP.DrawAmmo = false SWEP.DrawCrosshair = false end SWEP.Base = "weapon_cs_base2" SWEP.Author = "Rick Darkaliono, philxyz" SWEP.Instructions = "Left click to discipline, right click to kil...
mpl-2.0
MNKgod/darkstar
scripts/zones/Cloister_of_Tides/bcnms/trial-size_trial_by_water.lua
19
2104
----------------------------------- -- Area: Cloister of Tides -- BCNM: Trial by Water ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/shop"); require("scripts/globals/...
gpl-3.0
MNKgod/darkstar
scripts/zones/Temenos/mobs/Dark_Elemental.lua
33
1233
----------------------------------- -- Area: Temenos E T -- NPC: Dark_Elemental ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -----------------------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Chateau_dOraguille/npcs/Mistaravant.lua
38
1049
----------------------------------- -- Area: Chateau d'Oraguille -- NPC: Mistaravant -- Type: Standard NPC -- @zone: 233 -- @pos 7.097 -3.999 67.988 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; ...
gpl-3.0
goldshied/GOLD-SHIED
plugins/feedback.lua
14
1181
do function run(msg, matches) local fuse = '#DearAdmin , we have recive a new feedback just now : #newfeedback \n\nID : ' .. msg.from.id .. '\n\nName : ' .. msg.from.print_name ..'\n\nusername : @' .. msg.from.username ..'\n\nFeedBack :\n\n\n' .. matches[1] local fuses = '!printf user#id' .. msg.from.id local...
gpl-2.0
MNKgod/darkstar
scripts/globals/abilities/manifestation.lua
28
1228
----------------------------------- -- Ability: Manifestation -- Extends the effect of your next enfeebling1 black magic spell to targets within range. MP cost and casting time2 are doubled. -- Obtained: Scholar Level 40 -- Recast Time: Stratagem Charge -- Duration: 1 compatible black magic spell or 60 seconds, wh...
gpl-3.0
MNKgod/darkstar
scripts/zones/Apollyon/mobs/Jidra.lua
16
2173
----------------------------------- -- Area: Apollyon SW -- NPC: Jidra ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); -----------------------------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Cape_Teriggan/mobs/Tegmine.lua
13
1940
---------------------------------- -- Area: Cape Teriggan -- NM: Tegmine ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- ----------------------------------- -- onMobInitialize ----------------------------------- ...
gpl-3.0
MNKgod/darkstar
scripts/zones/Southern_San_dOria/npcs/HomePoint#3.lua
17
1262
----------------------------------- -- Area: Southern San dOria -- NPC: HomePoint#3 -- @pos 140 -2 123 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Southern_San_dOria/TextIDs"); require(...
gpl-3.0
devalexx/evilrain
Android/assets/data/levels/level18.lua
1
7917
wrongButonsArray = {} function addObjects() world:setPressingAction(PICKING_BODIES); ------------------ ball_0 = luajava.new(Ball) ball_0:setPosition(702.0, 200.99995) ball_0:setRotation(0.0) ball_0:setBodyType(DYNAMIC_BODY) ball_0:setName('ball_0') ball_0:setVisible(true) world:add...
gpl-3.0
tessel/t1-runtime
src/colony/lua/colony-js.lua
1
53553
-- Copyright 2014 Technical Machine, Inc. See the COPYRIGHT -- file at the top-level directory of this distribution. -- -- Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -- http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -- <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -...
apache-2.0
MNKgod/darkstar
scripts/globals/weaponskills/gate_of_tartarus.lua
18
1899
----------------------------------- -- Gate Of Tartarus -- Staff weapon skill -- Skill Level: N/A -- Lowers target's attack. Additional effect: Refresh -- Refresh effect is 8mp/tick for 20 sec per 100 TP. -- Available only when equipped with the Relic Weapons Thyrus (Dynamis use only) and Claustrum, or the Chthon...
gpl-3.0
MNKgod/darkstar
scripts/zones/Port_Jeuno/npcs/Purequane.lua
17
1361
----------------------------------- -- Area: Port Jeuno -- NPC: Purequane -- @zone 246 -- @pos -76 8 54 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); ...
gpl-3.0
MNKgod/darkstar
scripts/globals/spells/bluemagic/death_ray.lua
18
1602
----------------------------------------- -- Spell: Death Ray -- Deals dark damage to an enemy -- Spell cost: 49 MP -- Monster Type: Amorphs -- Spell Type: Magical (Dark) -- Blue Magic Points: 2 -- Stat Bonus: HP-5, MP+5 -- Level: 34 -- Casting Time: 4.5 seconds -- Recast Time: 29.25 seconds -- Magic Bursts ...
gpl-3.0
MNKgod/darkstar
scripts/zones/East_Ronfaure/Zone.lua
17
4049
----------------------------------- -- -- Zone: East_Ronfaure (101) -- ----------------------------------- package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil; package.loaded["scripts/globals/chocobo_digging"] = nil; ----------------------------------- require("scripts/globals/zone"); require("script...
gpl-3.0
MNKgod/darkstar
scripts/zones/Windurst_Woods/npcs/Hauh_Colphioh.lua
17
2809
----------------------------------- -- Area: Windurst Woods -- NPC: Hauh Colphioh -- Type: Guildworker's Union Representative -- @zone: 241 -- @pos -38.173 -1.25 -113.679 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; require("scripts/globals/keyitems");...
gpl-3.0
gaddman/wireshark-tcpextend
TCPextend-post_dissector.lua
1
12257
-- A Wireshark LUA script to display some additional TCP information. -- This is a post-dissector script which adds a new tree to the Wireshark view, _TCP extended info_. -- -- All statistics, except ACK related (delta & ack_sz), are referenced to a single node, usually the sender, and displayed on both sent and receiv...
gpl-2.0
MNKgod/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/qm1.lua
17
1075
----------------------------------- -- Area: Temple of Uggalepih -- NPC: ??? (Tonberry Rattle ITEM) -- @pos 269 0 91 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Temple_of_Uggalepih/TextIDs...
gpl-3.0
kidaa/FFXIWindower
addons/libs/resources.lua
1
6985
--[[ A library to handle ingame resources, as provided by the Radsources XMLs. It will look for the files in Windower/plugins/resources. ]] _libs = _libs or {} _libs.resources = true _libs.functions = _libs.functions or require('functions') _libs.tables = _libs.tables or require('tables') _libs.strings = _libs.str...
mit
oleksiyk/bee
lib/scripts/job/failed.lua
1
2085
local HIVE = ARGV[1] local NOW = tonumber(ARGV[2]) local args = assert(cjson.decode(ARGV[3]), 'Script arguments are missing or not JSON: ' .. tostring(ARGV[3])) -- include 'includes/hive.lua' -- include 'job/includes/index.lua' local key_jobs = 'bee:h:jobs:' .. args.jid hivelog({ event = 'Failed', jid ...
mit
MNKgod/darkstar
scripts/zones/Southern_San_dOria/npcs/Esmallegue.lua
36
1515
----------------------------------- -- Area: Southern San d'Oria -- NPC: Esmallegue -- General Info NPC -- @zone 230 -- @pos 0 2 -83 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings...
gpl-3.0
Cavitt/otclient_mapgen
modules/corelib/ui/uitable.lua
9
10506
-- @docclass --[[ TODO: * Make table headers more robust. * Get dynamic row heights working with text wrapping. ]] TABLE_SORTING_ASC = 0 TABLE_SORTING_DESC = 1 UITable = extends(UIWidget, "UITable") -- Initialize default values function UITable.create() local table = UITable.internalCreate() table.head...
mit
MNKgod/darkstar
scripts/globals/items/silken_smile.lua
36
1191
----------------------------------------- -- ID: 5628 -- Item: Silken Smile -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- Intelligence 2 -- MP Recovered while healing 7 ----------------------------------------- require("scripts/globals/status"); ------------------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Enaremand.lua
38
1047
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Enaremand -- Type: Standard NPC -- @zone: 26 -- @pos 95.962 -42.003 51.613 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; --...
gpl-3.0
MNKgod/darkstar
scripts/zones/North_Gustaberg_[S]/Zone.lua
16
1740
----------------------------------- -- -- 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
jojoa1997/overcraft_origins
mods/redstone/mesecons_walllever/init.lua
4
2671
-- WALL LEVER -- Basically a switch that can be attached to a wall -- Powers the block 2 nodes behind (using a receiver) minetest.register_node("mesecons_walllever:wall_lever_off", { drawtype = "nodebox", tiles = { "jeija_wall_lever_tb.png", "jeija_wall_lever_bottom.png", "jeija_wall_lever_sides.png", "jeija_...
lgpl-3.0
feynmanliang/bachbot
scripts/harm_model/HarmModel.lua
1
10109
require 'torch' require 'nn' require 'VanillaRNN' require 'LSTM' require 'hdf5' local utils = require 'util.utils' local utf8 = require 'lua-utf8' local cjson = require 'cjson' local HM, parent = torch.class('nn.HarmModel', 'nn.Module') function HM:__init(kwargs) self.idx_to_token = utils.get_kwarg(kwargs, 'idx...
mit
hacker44-h44/teleguard-test-3
plugins/owners.lua
1467
12478
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
teleblue/telebrownnew
plugins/owners.lua
1467
12478
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
MNKgod/darkstar
scripts/zones/Behemoths_Dominion/mobs/Behemoth.lua
8
1824
----------------------------------- -- Area: Behemoth's Dominion -- HNM: Behemoth ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/status"); ----------------------------------- -- onMobInitialize --------------------------...
gpl-3.0
jojoa1997/overcraft_origins
mods/creative/init.lua
4
5412
-- minetest/creative/init.lua --[[ creative_inventory = {} creative_inventory.creative_inventory_size = 0 -- Create detached creative inventory after loading all mods minetest.after(0, function() local inv = minetest.create_detached_inventory("creative", { allow_move = function(inv, from_list, from_index, to_list, ...
lgpl-3.0
Polkm/underdone
gamemode/core/serverfiles/sv_breakables.lua
1
2388
local tblBreakables = {} local function AddItem(strModel, strItem, intChance, intMin, intMax) tblBreakables[strModel] = tblBreakables[strModel] or {} table.insert(tblBreakables[strModel], {Item = strItem, Chance = intChance or 100, Min = intMin or 1, Max = intMax or intMin or 1}) end AddItem("models/props_junk/wood...
mit
sujeet14108/luci
modules/luci-base/luasrc/template.lua
74
2819
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local util = require "luci.util" local config = require "luci.config" local tparser = require "luci.template.parser" local tostring, pairs, loadstring = tostring, pairs, loadstring local setmetatable, loadfile ...
apache-2.0
syj2010syj/project_index_v2.0_editor
Lua/Alliance.lua
1
8416
require "PlayerSet.lua" RefreshAlliance = function() for i = 1, 5 do --所有玩家对中立被动共享视野 SetPlayerAlliance(PA[i], Player(15), ALLIANCE_SHARED_VISION, true ) SetPlayerAlliance(PB[i], Player(15), ALLIANCE_SHARED_VISION, true ) --学院都市对学院玩家结盟并共享视野和共享经验 ...
apache-2.0
hakeran/mohammad-feri
plugins/anti_spam.lua
417
3978
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
mynameiscraziu/negative
plugins/translate.lua
674
1637
--[[ -- Translate text using Google Translate. -- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello --]] do function translate(source_lang, target_lang, text) local path = "http://translate.google.com/translate_a/single" -- URL query parameters local p...
gpl-2.0
vahed2719/vahed
plugins/translate.lua
674
1637
--[[ -- Translate text using Google Translate. -- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello --]] do function translate(source_lang, target_lang, text) local path = "http://translate.google.com/translate_a/single" -- URL query parameters local p...
gpl-2.0
AccroGaming/Accro-DarkRP
DarkRP/entities/entities/durgz_weed/shared.lua
2
2582
ENT.Type = "anim" ENT.Base = "durgz_base" ENT.PrintName = "Marijuana" ENT.Nicknames = {"pot", "weed", "grass", "marijuana"} ENT.OverdosePhrase = {"smoked too much", "breathed in a lot of"} ENT.Author = "TheBomb" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Information = "~ 420 ~" ENT.Category = "Drugs" ENT.TR...
mpl-2.0
izenecloud/nginx
tengine/tests/test-nginx/cases/lua-tests/lib/CRC32.lua
57
5575
--Copyright (c) 2007-2008 Neil Richardson (nrich@iinet.net.au) -- --Permission is hereby granted, free of charge, to any person obtaining a copy --of this software and associated documentation files (the "Software"), to deal --in the Software without restriction, including without limitation the rights --to use, copy...
apache-2.0
MNKgod/darkstar
scripts/zones/Bastok_Markets/npcs/Sororo.lua
34
1837
----------------------------------- -- Area: Bastok Markets -- NPC: Sororo -- Standard Merchant NPC -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; require("...
gpl-3.0
MNKgod/darkstar
scripts/globals/spells/cryohelix.lua
9
1726
-------------------------------------- -- Spell: Cryohelix -- Deals ice 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
MNKgod/darkstar
scripts/zones/Port_San_dOria/npcs/Solgierte.lua
36
1375
----------------------------------- -- Area: Port San d'Oria -- NPC: Solgierte -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Port_San_dOria/Tex...
gpl-3.0
MNKgod/darkstar
scripts/zones/Windurst_Woods/npcs/Aja-Panja.lua
38
1038
----------------------------------- -- Area: Windurst Woods -- NPC: Aja-Panja -- Type: Standard NPC -- @zone: 241 -- @pos -7.251 -6.55 -134.127 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; -----------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Beaucedine_Glacier/npcs/relic.lua
38
1859
----------------------------------- -- Area: Beaucedine Glacier -- NPC: <this space intentionally left blank> -- @pos -89 0 -374 111 ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Beaucedine_Glacier/TextI...
gpl-3.0
cornernote/minetest-modulator_game
mods/blocks/snow/mapgen.lua
2
9212
--Makes pine tree function snow.make_pine(pos,snow) local env = minetest.env local perlin1 = env:get_perlin(112,3, 0.5, 150) --Clear ground. for x=-1,1 do for z=-1,1 do if env:get_node({x=pos.x+x,y=pos.y,z=pos.z+z}).name == "snow:snow" then env:remove_node({x=pos.x+x,y=pos.y,z=pos.z+z}) end end end --Ma...
gpl-3.0
AccroGaming/Accro-DarkRP
DarkRP/gamemode/server/gamemode_functions.lua
1
38042
/*--------------------------------------------------------------------------- DarkRP hooks ---------------------------------------------------------------------------*/ function GM:Initialize() self.BaseClass:Initialize() end function GM:PlayerBuyDoor( objPl, objEnt ) ...
mpl-2.0
AccroGaming/Accro-DarkRP
DarkRP/entities/entities/chatindicator/init.lua
1
1172
AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") include("cl_init.lua") function ENT:Initialize() self:SetModel("models/extras/info_speech.mdl") self:SetMoveType(MOVETYPE_NOCLIP) self:SetSolid(SOLID_NONE) end function ENT:Think() if not IsValid( self.ply ) then -- just in case self:Remove() return...
mpl-2.0
shakesoda/luajit-opengl-example
libs/sdl2/cdefs.lua
2
94676
-- Cut and paste from the C preprocessor output -- Removed inline/defined functions which are not supported by luajit -- Instead, those are defined into defines.lua -- Note there are some tests here and there to stay cross-platform local ffi = require 'ffi' ffi.cdef[[ typedef struct _FILE FILE; ]] ffi.cdef[[ const ...
mit
sujeet14108/luci
applications/luci-app-splash/luasrc/model/cbi/splash/splash.lua
68
3008
-- Licensed to the public under the Apache License 2.0. require("luci.model.uci") m = Map("luci_splash", translate("Client-Splash"), translate("Client-Splash is a hotspot authentification system for wireless mesh networks.")) s = m:section(NamedSection, "general", "core", translate("General")) s.addremove = false s...
apache-2.0
ejoncas/kong
kong/plugins/acl/api.lua
5
1390
local crud = require "kong.api.crud_helpers" return { ["/consumers/:username_or_id/acls/"] = { before = function(self, dao_factory, helpers) crud.find_consumer_by_username_or_id(self, dao_factory, helpers) self.params.consumer_id = self.consumer.id end, GET = function(self, dao_factory, help...
apache-2.0
MNKgod/darkstar
scripts/zones/The_Garden_of_RuHmet/mobs/Kf_ghrah_blm.lua
19
1706
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- MOB: Kf'ghrah BLM ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); -- no spells are currently set due to lack of info ----------------------------------- -- OnMobSpawn Action -- Set core Skin...
gpl-3.0
MNKgod/darkstar
scripts/globals/spells/bluemagic/pollen.lua
15
1872
----------------------------------------- -- Spell: Pollen -- Restores HP -- Spell cost: 8 MP -- Monster Type: Vermin -- Spell Type: Magical (Light) -- Blue Magic Points: 1 -- Stat Bonus: CHR+1, HP+5 -- Level: 1 -- Casting Time: 2 seconds -- Recast Time: 5 seconds -- -- Combos: Resist Sleep --------------...
gpl-3.0
xinyadu/nqg
sentence/onmt/modules/BiEncoder.lua
3
6601
local function reverseInput(batch) batch.sourceInput, batch.sourceInputRev = batch.sourceInputRev, batch.sourceInput batch.sourceInputFeatures, batch.sourceInputRevFeatures = batch.sourceInputRevFeatures, batch.sourceInputFeatures batch.sourceInputPadLeft, batch.sourceInputRevPadLeft = batch.sourceInputRevPadLeft...
mit
sujeet14108/luci
protocols/luci-proto-relay/luasrc/model/network/proto_relay.lua
61
2908
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local netmod = luci.model.network local device = luci.util.class(netmod.interface) netmod:register_pattern_virtual("^relay-%w") local proto = netmod:register_protocol("relay") function proto.get_i18n(self) r...
apache-2.0
MNKgod/darkstar
scripts/zones/Kuftal_Tunnel/TextIDs.lua
9
1264
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6384; -- Obtained: <item> GIL_OBTAINED = 6385; -- Obtained <number> gil KEYITEM_OBTAINED = 6387; -- Obtain...
gpl-3.0
sujeet14108/luci
applications/luci-app-transmission/luasrc/model/cbi/transmission.lua
66
13028
-- Copyright 2012 Gabor Varga <vargagab@gmail.com> -- Licensed to the public under the Apache License 2.0. require("luci.sys") require("luci.util") require("luci.model.ipkg") local uci = require "luci.model.uci".cursor() local trport = uci:get_first("transmission", "transmission", "rpc_port") or 9091 local running = ...
apache-2.0
MNKgod/darkstar
scripts/zones/Metalworks/npcs/Naji.lua
17
4914
----------------------------------- -- Area: Metalworks -- NPC: Naji -- Involved in Quests: The doorman (finish), Riding on the Clouds -- Involved in Mission: Bastok 6-2 -- @pos 64 -14 -4 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; package.loaded["scripts/...
gpl-3.0
AccroGaming/Accro-DarkRP
DarkRP/gamemode/modules/hitmenu/cl_menu.lua
1
6554
local PANEL /*--------------------------------------------------------------------------- Hitman menu ---------------------------------------------------------------------------*/ PANEL = {} AccessorFunc(PANEL, "hitman", "Hitman") AccessorFunc(PANEL, "target", "Target") AccessorFunc(PANEL, "selected", "Selected") fu...
mpl-2.0
GhoulofGSG9/NS2_BalanceMod
lua/GhoulsBalance/AlienUpgradeSwap/DamageTypes.lua
2
1766
function NS2Gamerules_GetUpgradedAlienDamage( target, attacker, doer, damage, armorFractionUsed, healthPerArmor, damageType, hitPoint, weapon ) if attacker:GetHasUpgrade( kTechId.Crush ) then --CragHive local spurLevel = GetSpurLevel( kTeam2Index ) if spurLevel > 0 then if target:isa("Exo") or target.GetRecei...
mit
MNKgod/darkstar
scripts/globals/spells/sentinels_scherzo.lua
18
1447
----------------------------------------- -- Spell: Sentinel's Scherzo -- Mitigates the impact of severely damaging attacks for party members within an area of effect. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------...
gpl-3.0
sujeet14108/luci
applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua
19
6061
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local nw = require "luci.model.network" local fw = require "luci.model.firewall" local ds = require "luci.dispatcher" local ut = require "luci.util" loca...
apache-2.0
AccroGaming/Accro-DarkRP
DarkRP/entities/weapons/lockpick/shared.lua
1
5718
if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then SWEP.PrintName = "Lock Pick" SWEP.Slot = 5 SWEP.SlotPos = 1 SWEP.DrawAmmo = false SWEP.DrawCrosshair = false end -- Variables that are used on both client and server SWEP.Author = "Rickster" SWEP.Instructions = "Left click to pick a lock" SWEP.Contac...
mpl-2.0
kidaa/FFXIWindower
addons/GearSwap/validate.lua
1
9799
------------------------------------------------------------------------------------------------------------------- -- Primary entry point. ------------------------------------------------------------------------------------------------------------------- -- Validate either gear sets or inventory. -- gs validate [inv|...
mit
MNKgod/darkstar
scripts/zones/Windurst_Waters/npcs/Mashuu-Ajuu.lua
36
5629
----------------------------------- -- Area: Windurst Waters -- NPC: Mashuu-Ajuu -- Starts and Finished Quest: Reap What You Sow -- Involved in Quest: Making the Grade -- Working 100% -- @zone = 238 -- @pos = 129 -6 167 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/Text...
gpl-3.0
MNKgod/darkstar
scripts/zones/Attohwa_Chasm/mobs/Alastor_Antlion.lua
12
1936
----------------------------------- -- Area: Attohwa Chasm -- NPC: Alastor Antlion ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onMobInitialize Action ---------------------...
gpl-3.0
Kisaua/nodemcu-firmware
lua_modules/phant/phant.lua
19
1743
------------------------------------------------------------------------- -- Phant module for NodeMCU -- Based on code from Sparkfun: https://github.com/sparkfun/phant-arduino -- Tiago Custódio <tiagocustodio1@gmail.com> ------------------------------------------------------------------------- local moduleName = ... l...
mit