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
sujeet14108/luci
modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua
10
4048
-- Licensed to the public under the Apache License 2.0. module "luci.sys.zoneinfo.tzoffset" OFFSET = { gmt = 0, -- GMT eat = 10800, -- EAT cet = 3600, -- CET wat = 3600, -- WAT cat = 7200, -- CAT eet = 7200, -- EET wet = 0, -- WET sast = 7200, -- SAST hst = -36000, -- HS...
apache-2.0
MNKgod/darkstar
scripts/zones/Bastok-Jeuno_Airship/npcs/Dereck.lua
19
1994
----------------------------------- -- Area: Bastok-Jeuno Airship -- NPC: Dereck -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Bastok-Jeuno_Airship/TextIDs"] = nil; require("scripts/zones/Bastok-Jeuno_Airship/TextIDs"); ----------------------------------- -- onTrade Action -...
gpl-3.0
MNKgod/darkstar
scripts/zones/Waughroon_Shrine/Zone.lua
17
1873
----------------------------------- -- -- Zone: Waughroon_Shrine (144) -- ----------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Waughroon_Shrine/TextIDs"); ---------...
gpl-3.0
MNKgod/darkstar
scripts/globals/spells/bluemagic/grand_slam.lua
27
1742
----------------------------------------- -- Spell: Grand Slam -- Delivers an area attack. Damage varies with TP -- Spell cost: 24 MP -- Monster Type: Beastmen -- Spell Type: Physical (Blunt) -- Blue Magic Points: 2 -- Stat Bonus: INT+1 -- Level: 30 -- Casting Time: 1 seconds -- Recast Time: 14.25 seconds --...
gpl-3.0
MNKgod/darkstar
scripts/globals/spells/absorb-str.lua
18
1299
-------------------------------------- -- Spell: Absorb-STR -- Steals an enemy's strength. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast -----------...
gpl-3.0
teleblue/telebrownnew
plugins/admin.lua
7
6390
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
MNKgod/darkstar
scripts/zones/Beaucedine_Glacier/npcs/Ryunchi-Pauchi_WW.lua
30
3077
----------------------------------- -- Area: Beaucedine Glacier -- NPC: Ryunchi-Pauchi, W.W. -- Type: Outpost Conquest Guards -- @pos -24.351 -60.421 -114.215 111 ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
lisong521/wireshark
epan/wslua/console.lua
19
3481
-- console -- A console and a window to execute commands in lua -- -- (c) 2006 Luis E. Garcia Ontanon <luis@ontanon.org> -- -- Wireshark - Network traffic analyzer -- By Gerald Combs <gerald@wireshark.org> -- Copyright 1998 Gerald Combs -- -- This program is free software; you can redistribute it and/or -- modify it un...
gpl-2.0
MNKgod/darkstar
scripts/globals/items/salmon_sub_sandwich.lua
35
1501
----------------------------------------- -- ID: 4355 -- Item: salmon_sub_sandwich -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 2 -- Agility 1 -- Vitality 1 -- Intelligence 2 -- Mind -2 -- Ranged ACC 2 ----------------------------------------- require("scripts/gl...
gpl-3.0
MNKgod/darkstar
scripts/zones/Windurst_Waters/npcs/Kenapa-Keppa.lua
12
11988
----------------------------------- -- Area: Windurst Waters -- NPC: Kenapa Keppa -- Involved in Quest: Food For Thought, Hat in Hand -- Working 100% -- @zone = 238 -- @pos = 27 -6 -199 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; require("script...
gpl-3.0
raphaelamorim/fblualib
fblualib/util/test/reactor_test.lua
4
1332
-- -- Copyright (c) 2014, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- local pl = requ...
bsd-3-clause
Yukkurigame/Yukkuri
bin/data/scripts/gui/GUI.lua
1
4810
require("data/scripts/3rdparty/bit") require("data/scripts/gui/group") GUI = { _widgets = {}, _groups = {} } GUI.__index = GUI function GUI:loadGroup(name) local func = nil if name ~= nil then func = self["widgets_" .. name] end if type(func) == "function" then func(self, char) end end function GUI:widget...
mit
MNKgod/darkstar
scripts/globals/effects/voidstorm.lua
37
1334
----------------------------------- -- -- -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_STR,math.floor(effect:getPower()/2)); target:addMod(MOD_DEX,math.floor(ef...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/ulbuconut.lua
36
1146
----------------------------------------- -- ID: 5966 -- Item: Ulbuconut -- Food Effect: 5 Min, All Races ----------------------------------------- -- Agility -3 -- Intelligence +1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --...
gpl-3.0
MNKgod/darkstar
scripts/zones/Norg/npcs/Ranemaud.lua
17
3559
----------------------------------- -- Area: Norg -- NPC: Ranemaud -- Involved in Quest: Forge Your Destiny, The Sacred Katana -- @pos 15 0 23 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); r...
gpl-3.0
MNKgod/darkstar
scripts/zones/Bastok_Mines/npcs/Gawful.lua
38
1087
----------------------------------- -- Area: Bastok Mines -- NPC: Gawful -- Type: Item Deliverer -- @zone: 234 -- @pos -22.416 -3.999 -56.076 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scri...
gpl-3.0
MNKgod/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Aligi-Kufongi.lua
17
2997
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Aligi-Kufongi -- Title Change NPC -- @pos -23 -21 15 26 ----------------------------------- require("scripts/globals/titles"); local title2 = { TAVNAZIAN_SQUIRE ,PUTRID_PURVEYOR_OF_PUNGENT_PETALS , MONARCH_LINN_PATROL_GUARD , SIN_HUNTER_...
gpl-3.0
MNKgod/darkstar
scripts/zones/Bastok_Markets/npcs/Ulrike.lua
53
1816
----------------------------------- -- Area: Bastok Markets -- NPC: Ulrike -- Type: Goldsmithing Synthesis Image Support -- @pos -218.399 -7.824 -56.203 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/st...
gpl-3.0
cornernote/minetest-modulator_game
mods/blocks/homedecor/crafts.lua
1
26848
-- Crafting for homedecor mod (includes folding) by Vanessa Ezekowitz -- 2012-06-12 -- -- Mostly my own code; overall template borrowed from game default -- -- License: GPL -- -- ==================================== -- Smelting recipes and resultant items minetest.register_craftitem("homedecor:roof_tile_terracotta", ...
gpl-3.0
MNKgod/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Galzweesh.lua
34
1034
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Galzweesh -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); --------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Temenos/mobs/Kindred_Summoner.lua
16
1157
----------------------------------- -- Area: Temenos N T -- NPC: Kindred_Summoner. ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -------------------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Kuftal_Tunnel/mobs/Phantom_Worm.lua
27
1396
----------------------------------- -- Area: Kuftal Tunnel (173) -- Mob: Phantom Worm ----------------------------------- ----------------------------------- -- onMobDeath ----------------------------------- function onMobDeath(mob,killer) local npc = GetNPCByID(17490254); npc:hideNPC(900); local randpos =...
gpl-3.0
sujeet14108/luci
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
47
3995
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local encaps, atmdev, vci, vpi, username, password local ipv6, defaultroute, metric, peerdns, dns, keepalive_failure, keepalive_interval, demand, mtu encaps = section:tabop...
apache-2.0
MNKgod/darkstar
scripts/zones/Bastok_Markets/npcs/Svana.lua
59
1040
----------------------------------- -- Area: Bastok Markets -- NPC: Svana -- Type: Weather Reporter ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Bastok_Markets/TextIDs");...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/bijou_glace.lua
35
1336
----------------------------------------- -- ID: 4269 -- Item: Bijou Glace -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic % 13 -- Magic Cap 90 -- Magic Regen While Healing 1 ----------------------------------------- require("scripts/globals/status"); -----------------...
gpl-3.0
RushilPatel/BattleForWesnoth
data/lua/wml-tags.lua
2
37979
--! #textdomain wesnoth -- Backward-compatibility hack to avoid executing the file twice due to -- old preload events. (To be removed in 1.11.) The hack assumes this -- file is the first one to be executed. if wesnoth.package["lua/helper.lua"] then return end function wesnoth.game_events.on_load(cfg) if #cfg == 0 th...
gpl-2.0
MNKgod/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/Heumila.lua
38
1030
----------------------------------- -- Area: Bastok Markets (S) -- NPC: Heumila -- Type: Past Event Watcher -- @zone: 87 -- @pos -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; -------------------...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/four-leaf_mandragora_bud.lua
35
1221
----------------------------------------- -- ID: 4369 -- Item: four-leaf_mandragora_bud -- Food Effect: 60Min, All Races ----------------------------------------- -- Agility 3 -- Vitality -5 ----------------------------------------- require("scripts/globals/status"); ---------------------------------------...
gpl-3.0
diydrones/ardupilot
libraries/AP_Scripting/examples/6DoF_roll_pitch.lua
22
1957
-- A script for controlling the roll and pitch of 6DoF vehicles -- The script sets the target roll and pitch to the current value when arming or when E-stop is removed -- this allows the vehicle to be placed upside-down on the ground and to take off as normal -- its is also possible to setup a switch with option 300 to...
gpl-3.0
zactelegram12/IRAN
bot/bot.lua
1
6669
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") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
MNKgod/darkstar
scripts/zones/Beaucedine_Glacier/npcs/Iron_Grate.lua
17
2627
----------------------------------- -- Area: Beaucedine Glacier -- NPC: Iron Grate -- Type: Door -- @pos 241.000 5.000 -20.000 111 : J-8 -- @pos 60.000 5.000 -359.000 111 : H-10 -- @pos 100.000 -15.000 159.000 111 : I-7 -- @pos -199.000 -35.000 -220.000 111 : G-9 -- @pos -20.000 -55.000 -41.000 111 ...
gpl-3.0
MNKgod/darkstar
scripts/zones/North_Gustaberg/npcs/relic.lua
38
1851
----------------------------------- -- Area: North Gustaberg -- NPC: <this space intentionally left blank> -- @pos -217 97 461 106 ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/zones/North_Gustaberg/TextIDs"); -...
gpl-3.0
MNKgod/darkstar
scripts/zones/Giddeus/npcs/Ghoo_Pakya.lua
17
1990
----------------------------------- -- Area: Giddeus -- NPC: Ghoo Pakya -- Involved in Mission 1-3 -- @pos -139 0 147 145 ----------------------------------- package.loaded["scripts/zones/Giddeus/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globa...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/serving_of_flint_caviar.lua
35
1434
----------------------------------------- -- ID: 4276 -- Item: serving_of_flint_caviar -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 10 -- Magic 10 -- Dexterity 4 -- Mind -1 -- Charisma 4 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
diandian-xue/ddengine
example/simple-httpd/main.lua
1
3651
local ENGINE_ROOT = os.getenv("DDENGINE_ROOT") package.path = ENGINE_ROOT .. "/example/simple-httpd/?.lua" local ddcl = require "lddcl.core" local cjson = require "cjson" local conf = { worker = 1, socket = 1, timer_ms = 1, } ddcl.init(conf) local index = 0 local function timeout() ddc...
mit
AccroGaming/Accro-DarkRP
DarkRP/gamemode/modules/hungermod/sv_HungerMod.lua
1
2802
local HM = { } local FoodItems = { } local function AddFoodItem(name, mdl, amount) FoodItems[name] = { model = mdl, amount = amount } end function HM.PlayerSpawn(ply) ply:SetSelfDarkRPVar("Energy", 100) end hook.Add("PlayerSpawn", "HM.PlayerSpawn", HM.PlayerSpawn) function HM.Think() if not GAMEMODE.Config.hunger...
mpl-2.0
shengnoah/Blues
libs/so/test.lua
2
1125
local aprn = package.loadlib("libtangguo.so", "prn") local aadd = package.loadlib("libtangguo.so", "add") local asub = package.loadlib("libtangguo.so", "sub") local asplit = package.loadlib("libtangguo.so", "split") local itable = package.loadlib("libtangguo.so", "itable") local cjson_new = package.loadlib("libtangguo....
bsd-2-clause
MNKgod/darkstar
scripts/globals/items/handful_of_bloody_chocolate.lua
35
1173
----------------------------------------- -- ID: 5646 -- Item: handful_of_bloody_chocolate -- Food Effect: 1hour, All Races ----------------------------------------- -- MP Recovered While Healing 4 ----------------------------------------- require("scripts/globals/status"); ---------------------------------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Longsword.lua
16
1493
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Animated Longsword ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- fun...
gpl-3.0
MNKgod/darkstar
scripts/globals/spells/bluemagic/blood_drain.lua
18
1704
----------------------------------------- -- Spell: Blood Drain -- Steals an enemy's HP. Ineffective against undead -- Spell cost: 10 MP -- Monster Type: Giant Bats -- Spell Type: Magical (Dark) -- Blue Magic Points: 2 -- Stat Bonus: HP-5, MP+5 -- Level: 20 -- Casting Time: 4 seconds -- Recast Time: 90 second...
gpl-3.0
MNKgod/darkstar
scripts/zones/Port_Jeuno/npcs/Moulloie.lua
38
1028
----------------------------------- -- Area: Port Jeuno -- NPC: Moulloie -- Type: Standard NPC -- @zone: 246 -- @pos -77.724 7.003 59.044 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ---------------------...
gpl-3.0
ckjong/gentrify
Gentrify Lua/libraries/loveframes/objects/list.lua
13
19810
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.list")) local lovefra...
gpl-3.0
MNKgod/darkstar
scripts/zones/Jugner_Forest/npcs/Taumiale_RK.lua
30
3046
----------------------------------- -- Area: Jugner Forest -- NPC: Taumiale, R.K. -- Border Conquest Guards -- @pos 570.732 -2.637 553.508 104 ----------------------------------- package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); requi...
gpl-3.0
DBarney/lever
lever.lua
1
3783
-- -*- mode: lua tab-width: 2 indent-tabs-mode: 1 st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet --------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2014, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 3 Sept 2014 by Daniel Barney <d...
mit
MNKgod/darkstar
scripts/zones/Dynamis-Tavnazia/npcs/qm1.lua
19
2211
----------------------------------- -- Area: Dynamis-Tavnazia -- NPC: ??? -- @pos ----------------------------------- package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Tavnazia/TextIDs"); ---------...
gpl-3.0
MNKgod/darkstar
scripts/zones/La_Theine_Plateau/npcs/Stone_Monument.lua
32
1296
----------------------------------- -- Area: La Theine Plateau -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" -- @pos 334.133 50.623 141.163 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
MNKgod/darkstar
scripts/globals/mobskills/Queasyshroom.lua
18
1273
--------------------------------------------------- -- Queasyshroom -- Additional effect: Poison. Duration of effect varies with TP. -- Range is 13.5 yalms. -- Piercing damage Ranged Attack. -- Secondary modifiers: INT: 20%. -- Additional Effect: Poison is 3 HP/tick. -- Poison effect may not always process. -- ...
gpl-3.0
mohammadclashclash/dark99
bot/seedbot.lua
1
13365
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
MNKgod/darkstar
scripts/zones/Lower_Jeuno/npcs/Garnev.lua
17
2225
----------------------------------- -- Area: Lower Jeuno -- NPC: Garnev -- Starts and Finishes Quest: Deal with Tenshodo -- @zone 245 -- @pos 30 4 -36 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; --------------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Cirdas_Caverns_U/Zone.lua
36
1125
----------------------------------- -- -- Zone: Cirdas Caverns U -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Cirdas_Caverns_U/TextIDs"] = nil; require("scripts/zones/Cirdas_Caverns_U/TextIDs"); ----------------------------------- -- onInitial...
gpl-3.0
MNKgod/darkstar
scripts/zones/Southern_San_dOria/npcs/Lusiane.lua
36
1830
----------------------------------- -- Area: Southern San d'Oria -- NPC: Lusiane -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/shop...
gpl-3.0
MNKgod/darkstar
scripts/globals/mobskills/Tail_Slap.lua
13
1110
--------------------------------------------- -- Tail Slap -- -- Description: Delivers an area attack. Additional effect: "Stun." Damage varies with TP. -- Type: Physical (Blunt) --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("s...
gpl-3.0
MNKgod/darkstar
scripts/zones/Port_Bastok/npcs/Panana.lua
17
1119
----------------------------------- -- Area: Port Bastok -- NPC: Panana -- Involved in Quest: Out of One's Shell ----------------------------------- require("scripts/globals/quests"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,tr...
gpl-3.0
Kisaua/nodemcu-firmware
lua_modules/bh1750/bh1750_Example2.lua
89
1719
-- *************************************************************************** -- BH1750 Example Program for ESP8266 with nodeMCU -- BH1750 compatible tested 2015-1-30 -- -- Written by xiaohu -- -- MIT license, http://opensource.org/licenses/MIT -- ***********************************************************************...
mit
MNKgod/darkstar
scripts/zones/Selbina/npcs/Torapiont.lua
34
1475
----------------------------------- -- Area: Selbina -- NPC: Torapiont -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); require("scripts/globals/shop"); ---------...
gpl-3.0
MNKgod/darkstar
scripts/globals/mobskills/Hyper_Pulse.lua
17
1328
--------------------------------------------------- -- Hyper_Pulse -- -- Description: 300 magic damage, Gravity and short Bind, wipes Utsusemi -- Type: Magical -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/...
gpl-3.0
MNKgod/darkstar
scripts/commands/tp.lua
26
1203
--------------------------------------------------------------------------------------------------- -- func: @tp <amount> <player> -- desc: Sets a players tp. -- current known issue: pet tp fails to be set --------------------------------------------------------------------------------------------------- cmdprop...
gpl-3.0
dretay/seneschal
server/nginx/lua/pl/Date.lua
14
17714
--- Date and Date Format classes. -- See @{05-dates.md|the Guide}. -- -- Dependencies: `pl.class`, `pl.stringx` -- @module pl.Date -- @pragma nostrip local class = require 'pl.class' local os_time, os_date = os.time, os.date local stringx = require 'pl.stringx' local utils = require 'pl.utils' local assert_arg,assert...
gpl-2.0
AccroGaming/Accro-DarkRP
DarkRP/entities/entities/microwave/init.lua
2
3952
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/props/cs_office/microwave.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) local phys = self:GetPhysics...
mpl-2.0
MNKgod/darkstar
scripts/zones/Newton_Movalpolos/npcs/Treasure_Coffer.lua
17
3324
----------------------------------- -- Area: Newton Movalpolos -- NPC: Treasure Coffer -- @zone 12 ----------------------------------- package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems");...
gpl-3.0
cornernote/minetest-modulator_game
mods/tools/moreores/init.lua
2
10442
--[[ **** More Ores by Calinou Rewritten by MarkTraceur Version 2012-06-24 Licensed under GPLv3 or later, see http://www.gnu.org/licenses/gpl-3.0.html **** --]] -- Utility functions local default_stone_sounds = default.node_sound_stone_defaults() local stick = 'default:stick' local recipes = { sword = {{'m'}, {'m'}...
gpl-3.0
frankyifei/koreader-base
ffi/framebuffer.lua
2
9492
--[[ Framebuffer API This will be extended by implementations of this API. --]] local Blitbuffer = require("ffi/blitbuffer") local fb = { device = nil, -- points to a device object debug = function(...) --[[ NOP ]] end, bb = nil, -- should be set by implementations full_bb = nil, -- will hold a save...
agpl-3.0
MNKgod/darkstar
scripts/zones/Dragons_Aery/npcs/qm0.lua
16
1878
----------------------------------- -- Area: Dragons Aery -- NPC: ??? (Spawn Nidhogg) -- @pos -81 32 2 178 ----------------------------------- package.loaded["scripts/zones/Dragons_Aery/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Dragons_Aery/TextIDs"); require("scripts/global...
gpl-3.0
MNKgod/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Chauxnatte.lua
34
1287
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Chauxnatte -- @zone 80 -- @pos 85 1 -51 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/quests"); ----------------------------------- -- onTrade Ac...
gpl-3.0
MNKgod/darkstar
scripts/zones/Spire_of_Dem/npcs/_0j0.lua
19
1429
----------------------------------- -- Area: Spire_of_Dem -- NPC: Web of Recollections -- @pos 0.000 -2.0 247.992 19 ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests"); r...
gpl-3.0
wangjunwei01/skynet
lualib/skynet/debug.lua
42
1723
local io = io local table = table local debug = debug return function (skynet, export) local internal_info_func function skynet.info_func(func) internal_info_func = func end local dbgcmd local function init_dbgcmd() dbgcmd = {} function dbgcmd.MEM() local kb, bytes = collectgarbage "count" skynet.ret(skynet.pa...
mit
MNKgod/darkstar
scripts/zones/Ilrusi_Atoll/npcs/Excaliace.lua
29
4503
----------------------------------- -- Area: Periqia -- NPC: Excaliace ----------------------------------- require("scripts/zones/Periqia/IDs"); require("scripts/globals/pathfind"); local start = {-322,-16.5,380}; local startToChoice1 = { -320.349548, -16.046591, 379.684570 -318.312317, -16.046591, 379.5798...
gpl-3.0
MNKgod/darkstar
scripts/zones/Windurst_Woods/npcs/Sola_Jaab.lua
17
1557
----------------------------------- -- Area: Windurst Woods -- NPC: Sola Jaab -- Involved in Quest: Riding on the Clouds -- @zone 241 -- @pos 109 -5 -25 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
GODILOVEYOUME2/black
bot/utils.lua
2
13993
function serialize_to_file(data, file, uglify) file = io.open(file, 'w+') local serialized if not uglify then serialized = serpent.block(data, { comment = false, name = '_' }) else serialized = serpent.dump(data) end file:write(serialized) file:close() end function string.ran...
gpl-3.0
agramonte/FuseQuick
QuickFuseExample/resources/quicklua/QDebug.lua
6
1664
--[[/* * (C) 2012-2013 Marmalade. * * 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, modify, merge, publish,...
mit
MNKgod/darkstar
scripts/globals/items/sweet_baked_apple.lua
35
1318
----------------------------------------- -- ID: 4336 -- Item: sweet_baked_apple -- Food Effect: 1hour, All Races ----------------------------------------- -- Magic Points 25 -- Intelligence 4 -- MP Recovered While Healing 2 ----------------------------------------- require("scripts/globals/status"); ----...
gpl-3.0
syj2010syj/project_index_v2.0_editor
Lua/Item4.lua
1
8782
--黑曜石 InitItem{ name = "黑曜石", id = |I0BE|, skill = function(this) if this.event == "获得" then AddAP(this.unit, 15) elseif this.event == "失去" then AddAP(this.unit, -15) end end } --魔能法杖 InitIt...
apache-2.0
DanielKeep/CC
line.lua
1
3539
--[[ Line movement program. Written by Daniel Keep. Copyright 2012. Released under the MIT license. ]] --[[ Usage: line LENGTH [OPTIONS] [--] COMMAND [; COMMAND ...] ]] local args = {...} local VERSION = 0.6 local YIELD_WAIT = 0.01 function main(args) if #args == 0 then showHel...
mit
MNKgod/darkstar
scripts/globals/mobskills/Equalizer.lua
17
1062
--------------------------------------------------- -- Equalizer -- AoE damage (~600-800), -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); ----------------------------------------------...
gpl-3.0
ultijlam/tidy-plates-threat-plates
Styles/Styles.lua
1
2411
local _, ns = ... local t = ns.ThreatPlates local function GetGeneral(unit) local r, d, e = unit.reaction, unit.isDangerous, unit.isElite if r == "TAPPED" then return "Tapped" elseif r == "NEUTRAL" then return "Neutral" elseif r ~= "NEUTRAL" and r~= "TAPPED" then if d and e then return "Boss" elseif not...
gpl-3.0
padrinoo1/telesim
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
Zenfone2-Dev/kali-nethunter
nethunter-installer/update/system/bin/scripts/writeraw.lua
5
2269
local cmds = require('commands') local desc = [[ This script is a work in progress, not yet functional. It is an attempt to use the raw-writing capabilities already present within the devices ]] print(desc) -- Some raw data local rawdata = "6000F57b" --mf_auth local TIMEOUT = 2000 -- Shouldn't take longer than 2 s...
gpl-2.0
sshling/ABTestingGateway
lib/lua-resty-core/lib/ngx/ssl.lua
4
5171
-- Copyright (C) Yichun Zhang (agentzh) local ffi = require "ffi" local base = require "resty.core.base" local C = ffi.C local ffi_str = ffi.string local getfenv = getfenv local error = error local tonumber = tonumber local errmsg = base.get_errmsg_ptr() local get_string_buf = base.get_string_buf local get_size_ptr...
mit
MNKgod/darkstar
scripts/zones/Kazham/npcs/Bhi_Telifahgo.lua
15
1100
----------------------------------- -- Area: Kazham -- NPC: Bhi Telifahgo -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action ---------------------------...
gpl-3.0
Alizpj/loLo
plugins/welcome.lua
14
3498
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 = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
MNKgod/darkstar
scripts/zones/Castle_Oztroja/npcs/_47z.lua
17
1385
----------------------------------- -- Area: Castle Oztroja -- NPC: _47z (Torch Stand) -- Notes: Opens door _474 -- @pos -62.464 24.218 -67.313 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Ca...
gpl-3.0
MNKgod/darkstar
scripts/globals/abilities/pets/healing_breath_ii.lua
18
1467
--------------------------------------------------- -- Healing Breath II --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------------- function onAbil...
gpl-3.0
MNKgod/darkstar
scripts/zones/Windurst_Waters/npcs/Kyume-Romeh.lua
17
3228
----------------------------------- -- Area: Windurst Waters -- NPC: Kyume-Romeh -- Involved In Quest: Making Headlines, Hat in Hand -- @pos -58 -4 23 238 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
MNKgod/darkstar
scripts/globals/weaponskills/cataclysm.lua
30
1476
----------------------------------- -- Skill level: 290 -- Delivers light elemental damage. Additional effect: Flash. Chance of effect varies with TP. -- Generates a significant amount of Enmity. -- Does not stack with Sneak Attack -- Aligned with Aqua Gorget. -- Aligned with Aqua Belt. -- Properties: -- Elemen...
gpl-3.0
MNKgod/darkstar
scripts/zones/PsoXja/npcs/_093.lua
17
1614
----------------------------------- -- Area: Pso'Xja -- NPC: _093 (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- @pos -330.000 14.074 -261.600 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Pso...
gpl-3.0
MNKgod/darkstar
scripts/zones/Bastok_Mines/npcs/Titus.lua
56
1742
----------------------------------- -- Area: Bastok Mines -- NPC: Titus -- Alchemy Synthesis Image Support ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); require...
gpl-3.0
feynmanliang/bachbot
scripts/harm_model/util/DataLoader.lua
11
1548
require 'torch' require 'hdf5' local utils = require 'util.utils' local DataLoader = torch.class('DataLoader') function DataLoader:__init(kwargs) local h5_file = utils.get_kwarg(kwargs, 'input_h5') self.batch_size = utils.get_kwarg(kwargs, 'batch_size') self.seq_length = utils.get_kwarg(kwargs, 'seq_length') ...
mit
pazos/koreader
frontend/ui/data/keyboardlayouts/ko_KR_helper.lua
5
13758
--[[-- # Hangul-input-method Kit for Lua/KOReader ## Input method implemented: 2-beolsik (for simplicity, can retrieve many articles for implementation) ## Classes and their features * HgSylbls (= Hangul Syllables) - Determine if a character is in Hangul consonnant, vowel, initial, medial, or final character ...
agpl-3.0
philsiff/Red-Vs-Blue
Red Vs. Blue Files/addons/ulx/lua/ulx/base.lua
2
4397
--[[ Title: Base Sets up some things for ulx. ]] ulx.cvars = {} -- Used to decipher spaced cvars into actual implementation of underscored cvars (see below) --[[ Function: convar This is what will set up ULX's convars, it makes them under the command "ulx" Parameters: command - The console command. IE, "sv...
mit
radixdev/flang
lang/base/interpreter.lua
1
19387
--[[ Interpreter for the Flang language ;) "Uses" the visitor pattern to evaluate the AST from the parser. ]] Interpreter = {} Flang.Interpreter = Interpreter Interpreter.__index = Interpreter function Interpreter:new(o) if not o then error("nil constructor!") end o = { parser = o.parser, -- The...
mit
openLuat/Luat
drive/mono_lcd_spi_sh1106.lua
1
3257
---模块名称:SH1106驱动芯片命令配置 -- @module SH1106 -- @author 稀饭放姜 -- @license MIT -- @copyright openLuat -- @release 2017.10.17 module(..., package.seeall) --[[ 注意:此文件的配置,硬件上使用的是LCD专用的SPI引脚,不是标准的SPI引脚 disp库目前仅支持SPI接口的屏,硬件连线图如下: Air模块 LCD GND 地 LCD_CS 片选 LCD_CLK 时钟 LCD_DATA 数据 LCD_DC ...
mit
NatWeiss/RGP
src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionTintFrame.lua
14
1225
-------------------------------- -- @module ActionTintFrame -- @extend ActionFrame -- @parent_module ccs -------------------------------- -- Gets the tint action color.<br> -- return the tint action color. -- @function [parent=#ActionTintFrame] getColor -- @param self -- @return color3b_table#color3b_table ret (retu...
mit
siktirmirza/dt
plugins/english_lang.lua
2
18628
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
disslove2-bot/Mr.Mj-BOT
plugins/location.lua
625
1564
-- 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
mp4saeed/energy28
url.lua
567
9183
--[[ Copyright 2004-2007 Diego Nehab. 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, modify, merge, publish, distribute,...
gpl-3.0
parsaalemi/xybot
plugins/invite.lua
393
1225
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
payamohajeri/telegram-bot
plugins/tweet.lua
634
7120
local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json" local client = OAuth.new(consumer_key, consumer_secret, ...
gpl-2.0
disslove2-bot/Mr.Mj-BOT
plugins/tweet.lua
634
7120
local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json" local client = OAuth.new(consumer_key, consumer_secret, ...
gpl-2.0
yetsky/luci
applications/luci-vsftpd/luasrc/model/cbi/vsftpd/users.lua
11
1456
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2014 HackPascal <hackpascal@gmail.com> 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://ww...
apache-2.0
sdgdsffdsfff/nginx-openresty-windows
luajit-root-x64/luajit/share/luajit-2.1.0-alpha/jit/dis_ppc.lua
17
20318
---------------------------------------------------------------------------- -- LuaJIT PPC disassembler module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
bsd-2-clause