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 |
|---|---|---|---|---|---|
Igdra/darkstar | scripts/zones/Bibiki_Bay/Zone.lua | 4 | 6242 | -----------------------------------
--
-- Zone: Bibiki_Bay (4)
--
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyi... | gpl-3.0 |
hfjgjfg/creeeed5 | plugins/plugins.lua | 285 | 6096 | 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 |
cracingbozo7/simply-unproffesional | Themes/Simply Unprofessional 5.2/Graphics/Player combo.lua | 2 | 3262 | local player = Var "Player"
if SL[ToEnumShortString(player)].ActiveModifiers.HideCombo then
return
end
local kids, PreviousComboType
local ShowComboAt = THEME:GetMetric("Combo", "ShowComboAt")
local NumberMinZoom = 0.75
local NumberMaxZoom = 1.1
local NumberMaxZoomAt = tonumber(THEME:GetMetric("Combo", "NumberMaxZ... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Port_Windurst/npcs/Drozga.lua | 17 | 1460 | -----------------------------------
-- Area: Port Windurst
-- NPC: Drozga
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Port_Windurst/TextIDs");
----... | gpl-3.0 |
Greven-of-Norway/RC_CollectionAgent | CollectionAgent.lrdevplugin/Framework/Catalog/Keywords.lua | 1 | 23556 | --[[
Keywords.lua
'twas hoping this to be the be-all/end-ball of keyword modules, but not so easy: different apps need different keyword info..
Might be so inefficient to try and compute everything for everybody that it defeats much of the purpose - hmm...
--]]
local Keywords, dbg, dbg... | artistic-2.0 |
Igdra/darkstar | scripts/globals/items/bowl_of_goblin_stew.lua | 18 | 1490 | -----------------------------------------
-- ID: 4465
-- Item: bowl_of_goblin_stew
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Dexterity -4
-- Attack % 15.5
-- Ranged Attack % 15.5
-----------------------------------------
require("scripts/globals/status");
---------------------------... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Attohwa_Chasm/npcs/Loose_Sand.lua | 15 | 2054 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Loose sand
-----------------------------------
package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Attohwa_Chasm/TextIDs");
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
tontyoutoure/DOTA2-AI-Fun | game/dota_addons/dota2_ai_fun/scripts/vscripts/heroes/void_demon/void_demon_modifiers.lua | 1 | 9231 | modifier_void_demon_quake_slow_lua = class({})
function modifier_void_demon_quake_slow_lua:DeclareFunctions()
return {MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE}
end
function modifier_void_demon_quake_slow_lua:GetModifierMoveSpeedBonus_Percentage()
return self:GetAbility():GetSpecialValueFor("quake_slow_percenta... | mit |
Bo98/DarkRP | gamemode/modules/voting/cl_voting.lua | 2 | 7163 | local QuestionVGUI = {}
local PanelNum = 0
local VoteVGUI = {}
local function MsgDoVote(msg)
local _, chatY = chat.GetChatBoxPos()
local question = msg:ReadString()
local voteid = msg:ReadShort()
local timeleft = msg:ReadFloat()
if timeleft == 0 then
timeleft = 100
end
local OldTime... | mit |
kjl2y/darkstar | scripts/zones/Al_Zahbi/npcs/Falzuuk.lua | 27 | 3041 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Falzuuk
-- Type: Imperial Gate Guard
-- @pos -60.486 0.999 105.397 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/global... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Longsword.lua | 6 | 1526 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Longsword
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobE... | gpl-3.0 |
cipriancraciun/netpanzer | scripts/usercommands.lua | 1 | 2431 | UserCommands =
{
say_help = "Says something to all players",
say = function(param)
if param then
ChatInterface:say(param);
end
end,
teamsay_help = "Says something to team players",
teamsay = function(param)
if param then
ChatInterface:teamsay(param);
... | gpl-2.0 |
Igdra/darkstar | scripts/globals/abilities/light_shot.lua | 27 | 2802 | -----------------------------------
-- Ability: Light Shot
-- Consumes a Light Card to enhance light-based debuffs. Additional effect: Light-based Sleep
-- Dia Effect: Defense Down Effect +5% and DoT + 1
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Abyssea-Konschtat/npcs/qm9.lua | 10 | 1343 | -----------------------------------
-- Zone: Abyssea-Konschtat
-- NPC: qm9 (???)
-- Spawns Arimaspi
-- @pos ? ? ? 15
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[... | gpl-3.0 |
tontyoutoure/DOTA2-AI-Fun | game/dota_addons/dota2_ai_fun/scripts/vscripts/heroes/old_lifestealer/old_lifestealer.lua | 1 | 2952 | LinkLuaModifier("modifier_old_lifestealer_feast", "heroes/old_lifestealer/old_lifestealer_modifiers.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_old_lifestealer_anabolic_frenzy", "heroes/old_lifestealer/old_lifestealer_modifiers.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_old_lifestealer_pois... | mit |
jvandenbroek/domoticz | dzVents/runtime/integration-tests/stage1.lua | 1 | 42634 | local log
local dz
local err = function(msg)
log(msg, dz.LOG_ERROR)
end
local tstMsg = function(msg, res)
print('Stage: 1, ' .. msg .. ': ' .. tostring(res and 'OK' or 'FAILED'))
end
local expectEql = function (attr, test, marker)
if (attr ~= test) then
local msg = tostring(attr) .. '~=' .. tostring(test)
if ... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/The_Boyahda_Tree/npcs/Mandragora_Warden.lua | 13 | 2125 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: Mandragora Warden
-- Type: Mission NPC
-- @pos 81.981 7.593 139.556 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
-----------------------------------
-----------------------------------
... | gpl-3.0 |
jkhlf85/THETETOO_9 | plugins/ar_me.lua | 6 | 3670 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : موقــعي ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀... | gpl-2.0 |
GLPJJ/PL | lua/a.lua | 1 | 3122 | --#!lua 5.3.2
--@guliping
--[[
查询lua环境
for k,v in pairs(_G) do print(k,v) end
--]]
--[[
基础篇, 初识lua
print 和 type都是 lua内建的函数。
初识lua类型和运算符
http://blog.csdn.net/glp3329/article/details/52511855
lua 关键字:
and break do else
elseif end false for
function if in local
nil not or repeat
return then true until
whil... | gpl-3.0 |
festevezga/ToME---t-engine4 | game/modules/tome/data/maps/vaults/bandit-fortress.lua | 3 | 3874 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Yorcia_Weald/Zone.lua | 16 | 1181 | -----------------------------------
--
-- Zone: Yorcia Weald
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Yorcia_Weald/TextIDs"] = nil;
require("scripts/zones/Yorcia_Weald/TextIDs");
-----------------------------------
-- onInitialize
-------------------... | gpl-3.0 |
festevezga/ToME---t-engine4 | game/modules/tome/data/chats/tarelion-start-archmage.lua | 3 | 2514 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
mniestroj/turbo | examples/signalfd.lua | 4 | 1033 | --- Turbo.lua signalfd example
--
-- Copyright 2014 John Abrahamsen
--
-- 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 ... | apache-2.0 |
tmp6154/torch-rnn | util/gradcheck.lua | 22 | 2521 | local gradcheck = {}
function gradcheck.relative_error(x, y, h)
h = h or 1e-12
if torch.isTensor(x) and torch.isTensor(y) then
local top = torch.abs(x - y)
local bottom = torch.cmax(torch.abs(x) + torch.abs(y), h)
return torch.max(torch.cdiv(top, bottom))
else
return math.abs(x - y) / math.max(m... | mit |
l0k1/naev | dat/missions/sirius/achack/achack01.lua | 2 | 5713 | --[[
-- This is the first mission in the Academy Hack minor campaign.
--]]
title1 = _("A Sirian with a grudge")
text1 = _([[You find a young Fyrra man sitting uncomfortably amidst the uncouth characters that frequent the Wringer. He seems to be here with a purpose, but nobody seems to be giving him the time of day. C... | gpl-3.0 |
Greven-of-Norway/RC_CollectionAgent | CollectionAgent.lrdevplugin/Init.lua | 1 | 6609 | --[[
Init.lua (plugin initialization module)
--]]
-- Unstrictify _G
local mt = getmetatable( _G ) or {}
mt.__newIndex = function( t, n, v )
rawset( t, n, v )
end
mt.__index = function( t, n )
return rawget( t, n )
end
setmetatable( _G, mt )
-- I N I T I A L I Z E L O A D E R
do
-- step 0: r... | artistic-2.0 |
LashengRamsey/Azrael | server_script/NetWork/Protocol.lua | 1 | 2069 | module("Protocol", package.seeall)
--============================================
-- 约定:为了网关区分收到的客户端网络包,应该发送到哪个服务器进行处理,
-- 用协议范围来进行区分,进行以下约定
-- 1、网关跟服务器之间使用的保留范围:[1, 9999]
-- 2、主游戏服处理的协议范围:[10000,19999]
-- 3、好友服处理的协议范围:[20000,29999]
-- 4、聊天服处理的协议范围:[30000,39999]
-- 5、场景服处理的协议范围:[40000,49999]
-- 6、战斗服处理的协议范围:[50000,5... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Selbina/npcs/Zaldon.lua | 16 | 73227 | -----------------------------------
-- Area: Selbina
-- NPC: Zaldon
-- Involved in Quests: Under the sea, A Boy's Dream
-- Starts and Finishes: Inside the Belly
-- @pos -13 -7 -5 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
Igdra/darkstar | scripts/globals/items/bastore_sweeper.lua | 18 | 1502 | -----------------------------------------
-- ID: 5473
-- Item: Bastore Sweeper
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality +3
-- Defense +15% Cap 50
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Bastok_Mines/npcs/Quelle.lua | 27 | 1980 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Quelle
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- ... | gpl-3.0 |
festevezga/ToME---t-engine4 | game/engines/default/engine/interface/ControlCursorSupport.lua | 3 | 1946 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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) any later version.... | gpl-3.0 |
l0k1/naev | dat/missions/flf/flf_pre01.lua | 1 | 14553 | --[[
-- This is the first "prelude" mission leading to the FLF campaign. The player takes a FLF agent onboard, then either turns him in to the Dvaered or delivers him to a hidden FLF base.
-- stack variable flfbase_intro:
-- 1 - The player has turned in the FLF agent or rescued the Dvaered crew. Conditional for dv... | gpl-3.0 |
kjl2y/darkstar | scripts/globals/weaponskills/blade_chi.lua | 26 | 1409 | -----------------------------------
-- Blade Chi
-- Katana weapon skill
-- Skill Level: 150
-- Delivers a two-hit earth elemental attack. Damage varies with TP.
-- Aligned with the Thunder Gorget & Light Gorget.
-- Aligned with the Thunder Belt & Light Belt.
-- Element: Earth
-- Modifiers: STR:30% ; INT:30%
-- 100%TP ... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/GM_Home/Zone.lua | 32 | 1198 | -----------------------------------
--
-- Zone: GM Home (210)
--
-- Some cs event info:
-- 0 = Abyssea Debug
-- 1 = Mogsack Debug
-- ...
-- 139 = Janken challenges player to "Rock, Paper, Scissors"
-- ...
-- 140 = Camera test.
-- 141 = "Press confirm button to proceed" nonworking test.
--
------------------------------... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Windurst_Waters/npcs/Sohdede.lua | 14 | 1052 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Sohdede
-- Type: Standard NPC
-- @zone 238
-- @pos -60.601 -7.499 111.639
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
------------... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Apollyon/mobs/Proto-Omega.lua | 16 | 3336 | -----------------------------------
-- Area: Apollyon (Central)
-- MOB: Proto-Omega
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
require("scripts/globals/titl... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Carpenters_Landing/mobs/Birdtrap.lua | 2 | 1282 | -----------------------------------
-- Area: Carpenters' Landing
-- MOB: Birdtrap
-- Note: Placeholder Orctrap
-----------------------------------
require("scripts/zones/Carpenters_Landing/MobIDs");
-----------------------------------
-- onMobDespawn
-----------------------------------
function onMobDespawn(mob)
... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Bhaflau_Thickets/mobs/Harvestman.lua | 2 | 1143 | -----------------------------------
-- Area: Bhaflau Thickets
-- MOB: Harvestman
-- @pos 398.130 -10.675 179.169 52
-----------------------------------
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_ADD_EFFECT,mob:getS... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Mesachedeau_RK.lua | 13 | 3343 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Mesachedeau, R.K.
-- Type: Outpost Conquest Guards
-- @pos 470.843 23.465 415.520 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Palborough_Mines/npcs/Mythril_Seam.lua | 13 | 2827 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Mythril Seam
-- Involved In Mission: Journey Abroad
-- Involved in quest: Rock Racketeer
-- @zone 143
-- @pos -68 -7 173 // Rock Racketeer @pos 210 -32 -63
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"... | gpl-3.0 |
shahabsaf1/powerbot | plugins/twitter.lua | 632 | 2555 | local OAuth = require "OAuth"
-- EDIT data/twitter.lua with the API keys
local twitter_config = load_from_file('data/twitter.lua', {
-- DON'T EDIT HERE.
consumer_key = "", consumer_secret = "",
access_token = "", access_token_secret = ""
})
local client = OAuth.new(twitter_config.consumer_key, twitter_c... | gpl-2.0 |
Igdra/darkstar | scripts/zones/Selbina/npcs/Valgeir.lua | 17 | 5081 | -----------------------------------
-- Area: Selbina
-- NPC: Valgeir
-- involved in his name is his name is Valgeir quest
-- involved in expertise quest
-- involved in the basics quest
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Castle_Oztroja/npcs/Antiqix.lua | 14 | 7282 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Antiqix
-- Type: Dynamis Vendor
-- @pos -207.835 -0.751 -25.498 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs... | gpl-3.0 |
tontyoutoure/DOTA2-AI-Fun | game/dota_addons/dota2_ai_fun/scripts/vscripts/heroes/kahmeka/kahmeka.lua | 1 | 4071 | LinkLuaModifier("modifier_kahmeka_fly", "heroes/kahmeka/kahmeka_modifiers.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_kahmeka_ignite", "heroes/kahmeka/kahmeka_modifiers.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_kahmeka_wounding_spear", "heroes/kahmeka/kahmeka_modifiers.lua", LUA_MODIFIER_M... | mit |
kjl2y/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cf.lua | 13 | 1055 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cf (Gate of Wind)
-- @pos -332 0 99 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Inner_Horutoto_Ruins/TextIDs");
... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Port_Jeuno/npcs/Digaga.lua | 13 | 1041 | ----------------------------------
-- Area: Port Jeuno
-- NPC: Digaga
-- Type: Item Deliverer
-- @zone: 246
-- @pos -52.865 7.999 1.134
--
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------... | gpl-3.0 |
Igdra/darkstar | scripts/zones/PsoXja/npcs/qm1.lua | 14 | 1642 | -----------------------------------
-- Area: Pso'xja
-- NPC: ??? (qm1)
-- Notes: Used to spawn Golden-Tongued Culberry
-- @pos -270.063 31.395 256.812 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/TextIDs... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/qm2.lua | 13 | 1788 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: qm2 (???)
-- Involved In Quest: 20 in Pirate Years
-- @pos 47.852 -7.808 403.391 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Outer_RaKaznar/npcs/Liseran_Door_Exit.lua | 27 | 1207 | -----------------------------------
-- Area: Outer Ra'Kaznar
-- NPC: Liseran Door Exit
-- Zones out to Kamihr Drifts (zone 267)
-- @zone 274
-- @pos -34.549 -181.334 -20.031
-----------------------------------
package.loaded["scripts/zones/Outer_RaKaznar/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/East_Sarutabaruta/Zone.lua | 12 | 5491 | -----------------------------------
--
-- Zone: East_Sarutabaruta (116)
--
-----------------------------------
package.loaded[ "scripts/zones/East_Sarutabaruta/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scr... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Chegourt_RK.lua | 14 | 3350 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Chegourt, R.K.
-- Type: Outpost Conquest Guards
-- @pos -295 16 418 119
-------------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
--------------------------------------
require("scripts/globals/... | gpl-3.0 |
shayanchabok007/antispam_ok | plugins/trivia.lua | 647 | 6784 | do
-- Trivia plugin developed by Guy Spronck
-- Returns the chat hash for storing information
local function get_hash(msg)
local hash = nil
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':trivia'
end
if msg.to.type == 'user' then
hash = 'user:'..msg.from.id..':trivia'
end
return hash
en... | gpl-2.0 |
cracingbozo7/simply-unproffesional | Themes/Simply Unprofessional/BGAnimations/ScreenEvaluation common/PerPlayer/Pane4/default.lua | 2 | 10699 | local player = ...
local pn = ToEnumShortString(player)
-- table of offet values obtained during this song's playthrough
-- obtained via ./BGAnimations/ScreenGameplay overlay/JudgmentOffsetTracking.lua
local offsets = SL[pn].Stages.Stats[SL.Global.Stages.PlayedThisGame + 1].timing_offsets
local pane_width, pane_height... | gpl-3.0 |
cracingbozo7/simply-unproffesional | Themes/Simply Unprofessional 5.2/BGAnimations/ScreenNameEntryTraditional underlay/PerPlayer/Pane4/default.lua | 2 | 10699 | local player = ...
local pn = ToEnumShortString(player)
-- table of offet values obtained during this song's playthrough
-- obtained via ./BGAnimations/ScreenGameplay overlay/JudgmentOffsetTracking.lua
local offsets = SL[pn].Stages.Stats[SL.Global.Stages.PlayedThisGame + 1].timing_offsets
local pane_width, pane_height... | gpl-3.0 |
slact/nginx_http_push_module | dev/bench/deps/websocket-codec.lua | 8 | 7706 | --[[lit-meta
name = "creationix/websocket-codec"
description = "A codec implementing websocket framing and helpers for handshakeing"
version = "2.2.1"
dependencies = {
"creationix/base64@2.0.0",
"creationix/sha1@1.0.0",
}
homepage = "https://github.com/luvit/lit/blob/master/deps/websocket-codec.lua"... | mit |
Igdra/darkstar | scripts/zones/Windurst_Waters/npcs/Leepe-Hoppe.lua | 12 | 9422 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Leepe-Hoppe
-- Involved in Mission 1-3, Mission 7-2
-- @pos 13 -9 -197 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
re... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/North_Gustaberg/npcs/Heavy_Fog_IM.lua | 13 | 3328 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Heavy Fog, I.M.
-- Type: Border Conquest Guards
-- @pos -520.704 38.75 560.258 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conque... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Newton_Movalpolos/npcs/Moblin_Showman.lua | 13 | 1068 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: Moblin Showman - Bugbear Matman
-- @pos 124.544 19.988 -60.670 12
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Newton_Movalpolos/Tex... | gpl-3.0 |
swizl/QSanguosha-For-Hegemony | lua/ai/standard_cards-ai.lua | 1 | 126406 | --[[********************************************************************
Copyright (c) 2013-2015 Mogara
This file is part of QSanguosha-Hegemony.
This game 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... | gpl-3.0 |
cracingbozo7/simply-unproffesional | Themes/Simply Unprofessional/BGAnimations/ScreenGameplay underlay/PerPlayer/TargetScore/default.lua | 2 | 13132 | local player = ...
local pss = STATSMAN:GetCurStageStats():GetPlayerStageStats(player)
-- Pacemaker contributed by JackG
-- minor cleanup by dguzek and djpohly
local function get43size(size4_3)
return 640*(size4_3/854)
end
-- Ported from PSS.cpp, can be removed if that gets exported to Lua
local function GetCurMaxP... | gpl-3.0 |
AxisAngles/Lua-Math-Classes | v3.lua | 1 | 1852 | --By Trey Reynolds
--A simple vector3 class.
--Make a new v3 with: v3(x,y,z)
--Supports unm, add, sub, mul, div, pow, tostring, and concat.
--Supports unit with vec:unit()
--Supports magnitude with vec^1
--mul is defined as dot product
--cross product is done with vec^vec
local v3 do
local type=type
local setmt=set... | mit |
Igdra/darkstar | scripts/zones/Southern_San_dOria/npcs/Sharzalion.lua | 14 | 3803 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Sharzalion
-- Starts and Finishes Quest: The Crimson Trial
-- Involved in Quest: Peace for the Spirit
-- @zone 230
-- @pos 95 0 111
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
------------... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm15.lua | 14 | 1453 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm15 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- @pos 19.893 -5.500 325.767 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
tontyoutoure/DOTA2-AI-Fun | game/dota_addons/dota2_ai_fun/scripts/vscripts/heroes/telekenetic_blob/telekenetic_blob_catapult.lua | 1 | 2123 | LinkLuaModifier("telekenetic_blob_catapult_modifier", "heroes/telekenetic_blob/telekenetic_blob_catapult_modifier.lua", LUA_MODIFIER_MOTION_BOTH)
telekenetic_blob_catapult = class({})
function telekenetic_blob_catapult:CastFilterResultLocation(vLocation)
if IsClient () then
return UF_SUCCESS
end
local hCaster ... | mit |
kjl2y/darkstar | scripts/zones/Ordelles_Caves/npcs/Stalagmite.lua | 13 | 2629 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: Stalagmite
-- Involved In Quest: Sharpening the Sword
-- @pos -51 0.1 3 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
disslove2-bot/PLUS-BOT | plugins/service_entergroup.lua | 279 | 2147 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = chat_name or ''
chat_id = "chat#id" .. (... | gpl-2.0 |
kjl2y/darkstar | scripts/globals/mobskills/Tidal_Dive.lua | 33 | 1149 | ---------------------------------------------
-- Tidal Dive
--
-- Description: Dives at nearby targets. Additional effect: Weight and/or Bind (Status Effect)
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown radial
-- Notes: Only used over deep water.
--------------------------------------... | gpl-3.0 |
Igdra/darkstar | scripts/globals/mobskills/Amplification.lua | 28 | 1256 | ---------------------------------------------------
-- Amplification
-- Enhances Magic Attack and Magic Defense. Bonus stacks when used by mobs.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
------... | gpl-3.0 |
kjl2y/darkstar | scripts/globals/mobskills/Amplification.lua | 28 | 1256 | ---------------------------------------------------
-- Amplification
-- Enhances Magic Attack and Magic Defense. Bonus stacks when used by mobs.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
------... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Bastok_Markets/npcs/HomePoint#4.lua | 13 | 1252 | -----------------------------------
-- Area: Bastok Markets
-- NPC: HomePoint#4
-- @pos -191 -6 -68 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Bastok_Markets/TextIDs");
require("scripts/globals/home... | gpl-3.0 |
MikePopoloski/bgfx | scripts/idl.lua | 1 | 5779 | -- Copyright 2019 云风 https://github.com/cloudwu . All rights reserved.
-- License (the same with bgfx) : https://github.com/bkaradzic/bgfx/blob/master/LICENSE
local idl = {}
local comments = {}
function idl.comment(c)
comments[#comments+1] = c
end
local all_types = {}
local function copy_attribs(to, from)
if typ... | bsd-2-clause |
Igdra/darkstar | scripts/globals/effects/spirit_surge.lua | 33 | 1440 | -----------------------------------
--
-- EFFECT_SPIRIT_SURGE
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
-- The dragoon's MAX HP increases by % of wyvern MaxHP
target:addMod(MOD_HP,e... | gpl-3.0 |
haste/ivar2 | core/webserver.lua | 1 | 4325 | -- vim: set noexpandtab:
local server = require'http.server'
local new_headers = require "http.headers".new
local lconsole = require'logging.console'
local lfs = require'lfs'
local ivar2 = ...
local log = lconsole()
-- Keep this amount in mem before handler has to read from tmpfile
local BODY_BUFFER_SIZE = 2^17
local... | mit |
Igdra/darkstar | scripts/globals/items/chunk_of_sweet_lizard.lua | 18 | 1244 | -----------------------------------------
-- ID: 5738
-- Item: chunk_of_sweet_lizard
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 5
-- MP 5
-- Dexterity 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
Igdra/darkstar | scripts/globals/mobskills/Luminous_Lance.lua | 39 | 1406 | ---------------------------------------------
-- Luminous Lance
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/zones/Empyreal_Paradox/TextIDs");
-------------------------------------------... | gpl-3.0 |
seem-sky/fceuxd | output/luaScripts/Luabot.lua | 3 | 13529 | -- BeeBee, LuaBot Frontend v1.07
-- qFox, 2 August 2008
-- we need iup, so include it here (also takes care of cleaning up dialog when script exits)
require 'auxlib';
local botVersion = 1; -- check this version when saving/loading. this will change whenever the botsave-file changes.
function createTextareaTab(reftab... | gpl-2.0 |
LashengRamsey/Azrael | server_script/util/utility.lua | 1 | 9292 | --序列化一个Table
function tableToStr(t)
local mark={}
local assign={}
local function table2str(t, parent)
mark[t] = parent
local ret = {}
if table.isArray(t) then
for i,v in pairs(t) do
local k = tostring(i)
local dotk... | gpl-3.0 |
Ombridride/minetest-spidermob-v1 | api.lua | 2 | 26157 | spidermob = {}
function spidermob:register_mob(name, def)
minetest.register_entity(name, {
name = name,
hp_min = def.hp_min or 5, --
hp_max = def.hp_max,
physical = true,
collisionbox = def.collisionbox,
visual = def.visual,
visual_size = def.visual_size,
mesh = def.mesh,
textures = def.textures,
... | unlicense |
Igdra/darkstar | scripts/zones/Stellar_Fulcrum/Zone.lua | 17 | 2320 | -----------------------------------
--
-- Zone: Stellar_Fulcrum
--
-----------------------------------
package.loaded["scripts/zones/Stellar_Fulcrum/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Stellar_Fulcrum/TextIDs");
---------------------------... | gpl-3.0 |
UB12/Mr_bot | plugins/anti_spam.lua | 923 | 3750 |
--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 |
focusworld/focusanti | plugins/anti_spam.lua | 923 | 3750 |
--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 |
kjl2y/darkstar | scripts/zones/Port_San_dOria/npcs/Leonora.lua | 13 | 1491 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Leonora
-- Involved in Quest:
-- @zone 232
-- @pos -24 -8 15
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Abyssea-Grauberg/npcs/qm1.lua | 14 | 1388 | -----------------------------------
-- Zone: Abyssea-Grauberg
-- NPC: qm1 (???)
-- Spawns Ironclad Sunderer
-- @pos ? ? ? 254
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tr... | gpl-3.0 |
kjl2y/darkstar | scripts/globals/mobskills/High-Tension_Discharger.lua | 18 | 1291 | ---------------------------------------------------
-- High-Tension_Discharger
-- Description:
-- Type: Magical
-- additional effect : Stun
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
--------... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f8.lua | 13 | 1076 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Titan's Gate
-- @pos 260 -34 88 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
------... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_4fv.lua | 14 | 1708 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- Involved in Missions: San dOria Mission 8-2
-- @pos -50 -17 -154
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/T... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Manaclipper/npcs/Khots_Chalahko.lua | 13 | 1032 | -----------------------------------
-- Area: Manaclipper
-- NPC: Khots Chalahko
-- Type: NPC
-- @pos 0.019 -4.674 -18.782 3
-----------------------------------
package.loaded["scripts/zones/Manaclipper/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Manaclipper/TextIDs");
------------... | gpl-3.0 |
matthieudelaro/mnist-spatial-transform | trainer.lua | 1 | 5410 | require 'nn'
require 'optim'
require 'sys'
-- Load Facebook optim package
paths.dofile('Optim.lua')
local trainer = {}
-- This function should be called before any other on the trainer package.
-- Takes as input a torch network, a criterion and the options of the training
function trainer.initialize(network, criter... | mit |
cracingbozo7/simply-unproffesional | Themes/Simply Unprofessional/BGAnimations/ScreenEditMenu underlay.lua | 1 | 5044 | --HACK: Reset MusicRate to 1.0 every time this screen is accessed
-- because, otherwise, it can persist from editing one song with a
-- ratemod applied into another, different song.
--
-- see: OptionRowSongMusicRate() in ./Scripts/SL-PlayerOptions.lua
GAMESTATE:ApplyGameCommand("mod,1.0xmusic")
SL.Global.ActiveModifier... | gpl-3.0 |
swizl/QSanguosha-For-Hegemony | extension-doc/11-Fundamentals.lua | 15 | 9150 | --[[
大家好我是 William915。
从这个文件开始讲解AI的编写方法。
三国杀的 AI 由太阳神上与 hypercross 共同编写。
之后经过他们及 donle,宇文天启和本人的发展。
本文档针对的 AI 稳定版本为 V0.7 Patch 2(20120201,c11f5ace8)。
在论坛上可以看到反馈 AI 的问题的帖子远比反映程序的问题的帖子要多得多,这表明了 AI 的复杂性。
熟悉 AI 发展历史的朋友一定知道有那么一段时间 AI 常常会改好了这个又坏了那个,
这是因为影响 AI 表现的因素太多。
一言以蔽之,AI 编写与修改是牵一发而动全身的。
目前的 AI 架构还不完善,随着架构的逐步完善文档也会逐步的调... | gpl-3.0 |
Igdra/darkstar | scripts/globals/abilities/addendum_white.lua | 20 | 1611 | -----------------------------------
-- Ability: Addendum: White
-- Allows access to additional White Magic spells while using Light Arts.
-- Obtained: Scholar Level 10
-- Recast Time: Stratagem Charge
-- Duration: 2 hours
--
-- Level |Charges |Recharge Time per Charge
-- ----- -------- ---------------
-- 10 |1... | gpl-3.0 |
kjl2y/darkstar | scripts/globals/abilities/addendum_white.lua | 20 | 1611 | -----------------------------------
-- Ability: Addendum: White
-- Allows access to additional White Magic spells while using Light Arts.
-- Obtained: Scholar Level 10
-- Recast Time: Stratagem Charge
-- Duration: 2 hours
--
-- Level |Charges |Recharge Time per Charge
-- ----- -------- ---------------
-- 10 |1... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Aydeewa_Subterrane/npcs/qm1.lua | 30 | 1345 | -----------------------------------
-- Area: Aydeewa Subterrane
-- NPC: ??? (Spawn Nosferatu(ZNM T3))
-- @pos -199 8 -62 68
-----------------------------------
package.loaded["scripts/zones/Aydeewa_Subterrane/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aydeewa_Subterrane/TextIDs");
requ... | gpl-3.0 |
kjl2y/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Soimin-Oimin_CC.lua | 13 | 1069 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Soimin-Oimin, C.C.
-- Type: Retrace
-- @zone: 94
-- @pos -51.010 -6.276 213.678
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ... | gpl-3.0 |
mehrpouya81/irspm | bot/seedbot.lua | 1 | 8481 | 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 |
Igdra/darkstar | scripts/zones/Attohwa_Chasm/npcs/qm1.lua | 14 | 1627 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: ??? (qm1)
-- @pos -402.574 3.999 -202.750 7
-----------------------------------
package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Attohwa_Chasm/TextIDs");
-----------------------... | gpl-3.0 |
janaz/openwrt-packages | net/mwan3-luci/files/usr/lib/lua/luci/controller/mwan3.lua | 32 | 10895 | module("luci.controller.mwan3", package.seeall)
sys = require "luci.sys"
ut = require "luci.util"
ip = "/usr/bin/ip -4 "
function index()
if not nixio.fs.access("/etc/config/mwan3") then
return
end
entry({"admin", "network", "mwan"},
alias("admin", "network", "mwan", "overview"),
_("Load Balancing"), 600)
... | gpl-2.0 |
kjl2y/darkstar | scripts/zones/Windurst_Waters/npcs/Fomina.lua | 16 | 1639 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Fomina
-- Only sells when Windurst controlls Elshimo Lowlands
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windurst_Water... | gpl-3.0 |
kjl2y/darkstar | scripts/globals/items/kazham_pineapple.lua | 18 | 1182 | -----------------------------------------
-- ID: 4432
-- Item: kazham_pineapple
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -5
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
Igdra/darkstar | scripts/zones/Selbina/Zone.lua | 14 | 2596 | -----------------------------------
--
-- Zone: Selbina (248)
--
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/zone");
require("scripts/globals/shop");
require("scripts/globals/... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.