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
ramin65/cia
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
shahabsaf1/Fashist
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
NerdWalletOSS/Q
OPERATORS/F1S1OPF2/lua/is_prev_specialize.lua
1
1580
local qconsts = require 'Q/UTILS/lua/q_consts' local ffi = require 'Q/UTILS/lua/q_ffi' local is_base_qtype = require('Q/UTILS/lua/is_base_qtype') local plfile = require 'pl.file' local Scalar = require 'libsclr' local get_ptr = require 'Q/UTILS/lua/get_ptr' local cmem = require 'libcmem' return function ( qty...
mit
zhityer/zhityer7
plugins/remind.lua
362
1875
local filename='data/remind.lua' local cronned = load_from_file(filename) local function save_cron(msg, text,date) local origin = get_receiver(msg) if not cronned[date] then cronned[date] = {} end local arr = { origin, text } ; table.insert(cronned[date], arr) serialize_to_file(cronned, filename) re...
gpl-2.0
NerdWalletOSS/Q
RUNTIME/test/test_read_write.lua
1
1615
require 'Q/UTILS/lua/strict' local plpath = require 'pl.path' local Vector = require 'libvec' local Scalar = require 'libsclr' local cmem = require 'libcmem' local ffi = require 'Q/UTILS/lua/q_ffi' local qconsts = require 'Q/UTILS/lua/q_consts' local get_ptr = require 'Q/UTILS/lua/get_ptr' -- NOTE: appending '/' ...
mit
willmoffat/lua-fmt
test/lua-5.3.4-tests/strings.lua
6
13302
-- $Id: strings.lua,v 1.87 2016/12/21 19:23:02 roberto Exp $ -- See Copyright Notice in file all.lua print('testing strings and string library') local maxi, mini = math.maxinteger, math.mininteger local function checkerror (msg, f, ...) local s, err = pcall(f, ...) assert(not s and string.find(err, msg)) end ...
mit
jaythomas/love-experiment
src/services/input.lua
1
3659
--- Input service -- Store and process callbacks for input actions local Util = require 'src/services/util' local service = {} local key_map = { dpdown = 'down', dpleft = 'left', dpright = 'right', dpup = 'up', down = 'down', left = 'left', right = 'right', up = 'up', ['return'] = 'start', x = 's...
lgpl-3.0
sysuzhang/arcemu
src/scripts/lua/LuaBridge/Stable Scripts/Outland/Magisters Terrace/UNIT-MagistersTerrace-SisterofTorment.lua
30
1613
--[[ ******************************** * * * The Moon Project * * * ******************************** This software is provided as free and open source by the staff of The Moon Project, in accordance with the GPL license. This means we provide the so...
agpl-3.0
ahnqirage/thrift
lib/lua/Thrift.lua
74
6739
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
TeoTwawki/darkstar
scripts/zones/Port_Jeuno/npcs/Shami.lua
2
27346
----------------------------------- -- Area: Port Jeuno -- NPC: Shami -- Orb Seller (BCNM) -- !pos -14 8 44 246 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); local ID = require("scripts/zones/Port_Jeuno/IDs"); ----------------------------------- function o...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Port_Windurst/npcs/Gold_Skull.lua
2
1970
----------------------------------- -- Area: Port Windurst -- NPC: Gold Skull -- Mission NPC ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); local ID = require("scripts/zones/Port_Windurst/IDs"); ----------------------------------- function onTrade(player,...
gpl-3.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/ActionTimelineNode.lua
11
1809
-------------------------------- -- @module ActionTimelineNode -- @extend Node -- @parent_module ccs -------------------------------- -- -- @function [parent=#ActionTimelineNode] getRoot -- @param self -- @return Node#Node ret (return value: cc.Node) -------------------------------- -- -- @function [paren...
mit
xxMRXxx/M-R-X
plugins/1.lua
3
17124
do ws = {} rs = {} -- some examples of how to use this :3 ws[1] = "هلو" -- msg rs[1] = "هلوات عيني😜" -- reply ws[2] = "شلونكم" -- msg rs[2] = " احسن منك 😂" -- reply ws[3] = "نجب" -- msg rs[3] = "يخي اتجاوزك بخلاقي😑" -- reply ws[4] = "احبك" -- msg rs[4] = "حبك برص😒" -- reply ws[5] = "تحبني" -- msg rs[5] = "ا...
gpl-2.0
TeoTwawki/darkstar
scripts/zones/Ordelles_Caves/npcs/Stalagmite.lua
2
1044
----------------------------------- -- Area: Ordelles Caves -- NPC: Stalagmite -- Involved In Quest: Sharpening the Sword -- !pos -51 0.1 3 193 ----------------------------------- local ID = require("scripts/zones/Ordelles_Caves/IDs") require("scripts/globals/keyitems") require("scripts/globals/npc_util") ------------...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/spells/bluemagic/foot_kick.lua
8
1490
----------------------------------------- -- Spell: Foot Kick -- Deals critical damage. Chance of critical hit varies with TP -- Spell cost: 5 MP -- Monster Type: Beasts -- Spell Type: Physical (Slashing) -- Blue Magic Points: 2 -- Stat Bonus: AGI+1 -- Level: 1 -- Casting Time: 0.5 seconds -- Recast Time: 6.5 seconds -...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/AlTaieu/npcs/_0x2.lua
2
1706
----------------------------------- -- Area: Al'Taieu -- NPC: Rubious Crystal (West Tower) -- !pos -683.709 -6.250 -222.142 33 ----------------------------------- local ID = require("scripts/zones/AlTaieu/IDs"); require("scripts/globals/missions"); ----------------------------------- function onTrade(player,npc,trade...
gpl-3.0
wiremod/wire
lua/entities/gmod_wire_detonator.lua
3
1555
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Detonator" ENT.WireDebugName = "Detonator" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.Inputs = Wire...
apache-2.0
TeoTwawki/darkstar
scripts/commands/togglegm.lua
50
1876
--------------------------------------------------------------------------------------------------- -- func: togglegm -- desc: Toggles a GMs nameflags/icon. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "" }; funct...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/spells/luminohelix.lua
12
2050
-------------------------------------- -- Spell: Luminohelix -- Deals light 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/magic") -----...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/items/bowl_of_salt_ramen_+1.lua
11
1645
----------------------------------------- -- ID: 6463 -- Item: bowl_of_salt_ramen_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- DEX +6 -- VIT +6 -- AGI +6 -- Accuracy +6% (cap 95) -- Ranged Accuracy +6% (cap 95) -- Evasion +6% (cap 95) -- Resist Slow +15 ------------------------------...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/mobskills/seismostomp.lua
11
1209
--------------------------------------------- -- Seismostomp -- -- Description: Damage varies with TP. Additional effect: "Stun." -- Type: Physical (Blunt) -- -- --------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/abilities/pets/attachments/mana_converter.lua
11
1116
----------------------------------- -- Attachment: Mana Converter ----------------------------------- require("scripts/globals/status") ----------------------------------- function onEquip(pet) pet:addListener("AUTOMATON_ATTACHMENT_CHECK", "ATTACHMENT_MANA_CONVERTER", function(automaton, target) local mast...
gpl-3.0
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/Slider.lua
7
7542
-------------------------------- -- @module Slider -- @extend Widget -- @parent_module ccui -------------------------------- -- Changes the progress direction of slider.<br> -- param percent Percent value from 1 to 100. -- @function [parent=#Slider] setPercent -- @param self -- @param #int percent -- @return Slider...
mit
hpedrorodrigues/TimeRunner
src/scenes/preferences.lua
1
5086
local importations = require(IMPORTATIONS) local composer = require(importations.COMPOSER) local images = require(importations.IMAGES) local listener = require(importations.LISTENER) local eventUtil = require(importations.EVENT_UTIL) local sceneManager = require(importations.SCENE_MANAGER) local displayConstants = requ...
apache-2.0
Johncdy/Candy
Candy/object/gui/CEGUI/ScriptModules/Lua/support/tolua++bin/lua/enumerate.lua
14
2744
-- tolua: enumerate class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id$ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements...
gpl-3.0
czfshine-self/ds_mod_creator
examples/mod例子-人物/scripts/prefabs/wod.lua
4
1911
local MakePlayerCharacter = require "prefabs/player_common" local assets = { Asset( "ANIM", "anim/player_basic.zip" ), Asset( "ANIM", "anim/player_idles_shiver.zip" ), Asset( "ANIM", "anim/player_actions.zip" ), Asset( "ANIM", "anim/player_actions_axe.zip" ), Asset( "ANIM", "...
gpl-2.0
czfshine-self/ds_mod_creator
examples/mod例子-人物/samplecharacter (1)/samplecharacter/scripts/prefabs/wod.lua
4
1911
local MakePlayerCharacter = require "prefabs/player_common" local assets = { Asset( "ANIM", "anim/player_basic.zip" ), Asset( "ANIM", "anim/player_idles_shiver.zip" ), Asset( "ANIM", "anim/player_actions.zip" ), Asset( "ANIM", "anim/player_actions_axe.zip" ), Asset( "ANIM", "...
gpl-2.0
cuit-zhaxin/quick-ng
quick/samples/coinflip/src/app/scenes/PlayLevelScene.lua
8
1890
local Levels = import("..data.Levels") local Board = import("..views.Board") local AdBar = import("..views.AdBar") local PlayLevelScene = class("PlayLevelScene", function() return display.newScene("PlayLevelScene") end) function PlayLevelScene:ctor(levelIndex) local bg = display.newSprite("#PlayLevelSceneBg....
mit
dxmgame/dxm-cocos
src/apps/lua-simulator/Resources/src/cocos/extension/DeprecatedExtensionEnum.lua
62
1410
if nil == cc.Control then return end _G.kCCControlStepperPartMinus = cc.CONTROL_STEPPER_PART_MINUS _G.kCCControlStepperPartPlus = cc.CONTROL_STEPPER_PART_PLUS _G.kCCControlStepperPartNone = cc.CONTROL_STEPPER_PART_NONE _G.CCControlEventTouchDown = cc.CONTROL_EVENTTYPE_TOUCH_DOWN _G.CC...
mit
TeoTwawki/darkstar
scripts/globals/monstertpmoves.lua
10
23809
require("scripts/globals/magicburst") require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/utils") require("scripts/globals/msg"); -- Foreword: A lot of this is good estimating since the FFXI playerbase has not found all of info for individual moves. -- What is known...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Port_Jeuno/npcs/Horst.lua
11
2831
----------------------------------- -- Area: Port Jeuno -- NPC: Horst -- Type: Abyssea Warp NPC -- !pos -54.379 0.001 -10.061 246 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) local CRUOR = player:getCurrency("cruor"); if (player:getQuestStatus(ABY...
gpl-3.0
adrix89/Skinship
skinship/middleclass.lua
63
6117
local middleclass = { _VERSION = 'middleclass v3.0.1', _DESCRIPTION = 'Object Orientation for Lua', _URL = 'https://github.com/kikito/middleclass', _LICENSE = [[ MIT LICENSE Copyright (c) 2011 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining...
mit
anhk/lua-resty-libxml2
test1.lua
1
1035
local xml = require "lua-libxml2" local xmlstr = '<xml> <a> fff </a> <b> <x name="1" value="11"/> <x name="2" value="22"/> <x name="3" value="33"/> </b> ' .. '<c> <d> <x name="1" value="11"/> <x name="2" value="22"/> <x name="3" value="33"/> </d> ' .. ' <e> <x name="1" value="11"> Hello World! </x>...
apache-2.0
voydz/vektor
libs/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua
38
6512
--[[----------------------------------------------------------------------------- Keybinding Widget Set Keybindings in the Config UI. -------------------------------------------------------------------------------]] local Type, Version = "Keybinding", 24 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not Ace...
mit
GoogleCloudPlatform/ops-agent
confgenerator/testdata/valid/linux/logging-receiver_elasticsearch/2d9308852a43b3c54aede10d49a57667.lua
1
1169
function process(tag, timestamp, record) local __field_0 = (function() return record["agent.googleapis.com/log_file_path"] end)(); local __field_1 = (function() if record["logging.googleapis.com/labels"] == nil then return nil end return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"] e...
apache-2.0
ReWrite94/iLife
server/Classes/Quest/Scripts/11.lua
2
1868
local QuestID = 11 local Quest = Quests[QuestID] Quest.Texts = { ["Accepted"] = "Finde drei Gramm Kokain und gebe es dem Obdachlosen!", ["Finished"] = "Kehre zum Obdachlosen zur\\ueck!" } for k,v in ipairs(Quest:getPeds(2)) do addEventHandler("onElementClicked", v, function(button, state, thePlayer) if (butto...
mit
TeoTwawki/darkstar
scripts/zones/RuAun_Gardens/Zone.lua
2
2475
----------------------------------- -- -- Zone: RuAun_Gardens (130) -- ----------------------------------- local ID = require("scripts/zones/RuAun_Gardens/IDs"); require("scripts/globals/missions"); require("scripts/globals/conquest"); require("scripts/globals/treasure") require("scripts/globals/status"); require("scri...
gpl-3.0
rgburke/wed
wedruntime/lua/lexers/apl.lua
5
1682
-- Copyright 2015-2016 David B. Lamkins <david@lamkins.net>. See LICENSE. -- APL LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'apl'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. local comment...
gpl-2.0
cuit-zhaxin/quick-ng
quick/framework/cc/utils/GameState.lua
19
4151
local GameState = {} GameState.ERROR_INVALID_FILE_CONTENTS = -1 GameState.ERROR_HASH_MISS_MATCH = -2 GameState.ERROR_STATE_FILE_NOT_FOUND = -3 local crypto = require(cc.PACKAGE_NAME .. ".crypto") local json = require(cc.PACKAGE_NAME .. ".json") local encodeSign = "=QP=" local stateFilename = "state.txt" l...
mit
amirf2020/db
lang/italian_lang.lua
32
20741
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
celophi/melia
system/scripts/npc/dungeon/d_abbey_64_3.lua
1
7785
----- Edmundas ----- ----- npcselectdialog.ies | ClassName: ABBEY643_EDMONDA01 ----- ----- Dialog ----- ----- QuestIDs: ABBAY_64_3_MQ010 | ABBAY_64_3_MQ020 ----- addnpc(153110, "ETC_20151102_016545", "d_abbey_64_3", 712, 451, -141, 95, "npc_ETC_20151102_016545") function npc_ETC_20151102_016545() msg("GM_QUEST_MODIFY_...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Bastok_Mines/Zone.lua
2
2012
----------------------------------- -- -- Zone: Bastok_Mines (234) -- ----------------------------------- local ID = require("scripts/zones/Bastok_Mines/IDs") require("scripts/globals/events/harvest_festivals") require("scripts/globals/conquest") require("scripts/globals/missions") require("scripts/globals/settings") r...
gpl-3.0
gorcajo/GuilleScripts
awesomewm/wibar.lua
1
10191
local wibar = {} local gears = require("gears") local awful = require("awful") local wibox = require("wibox") local beautiful = require("beautiful") local globals = require("globals") -- Helper functions local function client_menu_toggle_fn() local instance = nil return function () if instance and ...
mit
TeoTwawki/darkstar
scripts/globals/spells/bluemagic/flying_hip_press.lua
12
1180
----------------------------------------- -- Spell: Flying Hip Press -- Deals wind damage to enemies within range -- Spell cost: 125 MP -- Monster Type: Beastmen -- Spell Type: Magical (Wind) -- Blue Magic Points: 3 -- Stat Bonus: AGI+1 -- Level: 58 -- Casting Time: 5.75 seconds -- Recast Time: 34.5 seconds -- Magic Bu...
gpl-3.0
yangxuan0261/Testmmo-server
server/service/world.lua
1
2294
local skynet = require "skynet" -- local sharedata = require "sharedata" local sharedata = require "skynet.sharedata" local syslog = require "syslog" local mapdata = require "gddata.map" local CMD = {} local map_instance = {} local online_character = {} local function kick_character (character) local a = online_char...
mit
zxteloiv/docomo-qa
lua/geo/searcher/baidu.lua
1
1718
local M_ = {} local json = require("rapidjson") local srv_conf = require("./lua/utils/conftool").load_srv_conf() local search_baidu_place = function (args) -- input variables adapter for baidu local url_args = { page_num = 0, ak = srv_conf.baidu_ak, scope = 2, output = "json", ...
apache-2.0
dxmgame/dxm-cocos
src/apps/lua-empty-test/Resources/src/cocos/extension/DeprecatedExtensionFunc.lua
61
1351
if nil == cc.Control then return end --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --functions of CCControl will be deprecated end local CCControlDeprecated = { } function CCControlDeprecated.ad...
mit
celophi/melia
system/scripts/npc/field/f_farm_49_2.lua
1
13436
----- Farm Supervisor Dorn ----- ----- npcselectdialog.ies | ClassName: FARM492_MQ_01 ----- ----- Dialog ----- ----- QuestIDs: FARM49_1_MQ05 | FARM49_2_MQ01 | FARM49_2_MQ02 | FARM49_2_MQ03 ----- addnpc(20012, "QUEST_LV_0200_20150323_003990", "f_farm_49_2", 437, 127, -1648, 45, "npc_QUEST_LV_0200_20150323_003990") func...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Windurst_Woods/npcs/Cha_Lebagta.lua
2
1475
----------------------------------- -- Area: Windurst Woods -- NPC: Cha Lebagta -- Type: Standard NPC -- !pos 58.385 -6.249 216.670 241 -- Involved in Quests: As Thick as Thieves, Mihgo's Amigo ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) local Mihg...
gpl-3.0
TeoTwawki/darkstar
scripts/commands/setskill.lua
14
1982
--------------------------------------------------------------------------------------------------- -- func: setskill <skill name or ID> <skill level> <target> -- desc: sets target's level of specified skill --------------------------------------------------------------------------------------------------- require("scr...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Kazham/npcs/Gatih_Mijurabi.lua
2
1645
----------------------------------- -- Area: Kazham -- NPC: Gatih Mijurabi -- Type: Standard NPC -- !pos 58.249 -13.086 -49.084 250 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- local ID = require("scripts/zones/Kazham/IDs") require("scripts/globals/quests") ------...
gpl-3.0
mkosler/DirtyTalk
demo/entity.lua
1
1143
local DirtyTalk = require 'dirtytalk' local Entity = {} Entity.__index = Entity --- Message types Entity.Messages = { EAT = 'EAT', TALK = 'TALK', SLEEP = 'SLEEP', WAKE_UP = 'WAKE_UP' } function Entity:new(name) return setmetatable({ name = name }, self) end function Entity:__tostring() return stri...
mit
GoogleCloudPlatform/ops-agent
confgenerator/testdata/valid/linux/logging-receiver_apache_custom/630c5c686fe92f2a214393d527ba005a.lua
2
1124
function process(tag, timestamp, record) local __field_1 = (function() return record["level"] end)(); local v = "agent.googleapis.com/apache_error"; (function(value) if record["logging.googleapis.com/labels"] == nil then record["logging.googleapis.com/labels"] = {} end record["logging.googleapis.com/labels"]["logging....
apache-2.0
jozeff3/devill
plugins/msg_checks.lua
10
10753
--[[ # For More Information ....! # Developer : Aziz < @devss_bot > #Dev # our channel: @help_tele ]] --Begin msg_checks.lua --Begin pre_process function local function pre_process(msg) -- Begin 'RondoMsgChecks' text checks by @rondoozle if is_chat_msg(msg) or is_super_group(msg) then if msg and not is_momod(msg...
gpl-2.0
TeoTwawki/darkstar
scripts/zones/Temenos/mobs/Enhanced_Ahriman.lua
3
1132
----------------------------------- -- Area: Temenos Central 1floor -- NPC: Enhanced_Ahriman ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- -- onMobSpawn Action ----------------------------------- ----------------------------------- -- onMobEngaged --------...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Southern_San_dOria/npcs/Lusiane.lua
11
1154
----------------------------------- -- Area: Southern San d'Oria -- NPC: Lusiane -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs") require("scripts/globals/npc_util") require("scripts/globals/quests") require("scripts/globals/shop") function onTrad...
gpl-3.0
Rukinom/LG38
src/wavemanager.lua
1
2255
wavemanager = {} local wavetimer = 0 function wavemanager:update(dt) if waveNumber <= #waves then if waveOngoing == true then local currentWave = waves[waveNumber] wavetimer = wavetimer + dt for i, spawner in pairs(currentWave) do if spawner.spawnCount > 0 then -- check if it still has enemies to spa...
apache-2.0
sundream/skynet
test/testbson.lua
29
1541
local bson = require "bson" local sub = bson.encode_order( "hello", 1, "world", 2 ) do -- check decode encode_order local d = bson.decode(sub) assert(d.hello == 1 ) assert(d.world == 2 ) end local function tbl_next(...) print("--- next.a", ...) local k, v = next(...) print("--- next.b", k, v) return k, v end...
mit
rgburke/wed
wedruntime/lua/lexers/django.lua
5
2590
-- Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE. -- Django LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V local M = {_NAME = 'django'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments....
gpl-2.0
prapin/premake-core
tests/actions/vstudio/sln2005/test_projects.lua
9
5472
-- -- tests/actions/vstudio/sln2005/test_projects.lua -- Validate generation of Visual Studio 2005+ solution project entries. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- local suite = test.declare("vstudio_sln2005_projects") local sln2005 = premake.vstudio.sln2005 -- -- Setup -- local wks...
bsd-3-clause
TeoTwawki/darkstar
scripts/globals/items/plate_of_ic_pilav.lua
11
1688
----------------------------------------- -- ID: 5584 -- Item: plate_of_ic_pilav -- Food Effect: 180Min, All Races ----------------------------------------- -- Health % 14 -- Health Cap 65 -- Strength 4 -- Vitality -1 -- Intelligence -1 -- Health Regen While Healing 1 -- Attack % 22 -- Attack Cap 65 -- Ranged ATT % 22 ...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/abilities/role_reversal.lua
12
1070
----------------------------------- -- Ability: Role Reversal -- Swaps Master's current HP with Automaton's current HP. -- Obtained: Puppetmaster Level 75 -- Recast Time: 2:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/...
gpl-3.0
IoveSunny/DreamBox
feeds/luci/luci/luci/applications/luci-asterisk/luasrc/controller/asterisk.lua
4
7561
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 h...
gpl-2.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/tests/lua-tests/src/ParallaxTest/ParallaxTest.lua
6
4961
local kTagNode = 0 local kTagGrossini = 1 local function createParallaxLayer(title, subtitle) local layer = cc.Layer:create() Helper.initWithLayer(layer) local titleStr = title == nil and "No title" or title local subTitleStr = subtitle == nil and "" or subtitle Helper.titleLabel:setString(t...
mit
ReWrite94/iLife
client/Quests/Scripts/37.lua
2
2699
local QuestID = 37 local Quest = Quests[QuestID] local QuestFunctions = {} local QuestElements = {} --Set this true to lock this script. local QuestLocked = false --[[ ACCEPT TRIGGERS HERE ]] -- ID: QuestID -- State = Aktueler Queststatus -- tblData = Zu übertragende Daten local CallClientQuestScript = function(ID, ...
mit
dxmgame/dxm-cocos
src/apps/lua-tests/Resources/src/cocos/framework/components/event.lua
62
4752
local Event = class("Event") local EXPORTED_METHODS = { "addEventListener", "dispatchEvent", "removeEventListener", "removeEventListenersByTag", "removeEventListenersByEvent", "removeAllEventListeners", "hasEventListener", "dumpAllEventListeners", } function Event:init_() self.tar...
mit
XeonSquared/multice
modules/drivers/tty.lua
1
1131
function tty(gA,sA,sI,fg,bg) local gP,cx,cy,bg,fg = component.proxy(gA),1,1,bg or 0x000000, fg or 0xffffff gP.bind(sA) local sx, sy = gP.getResolution() gP.setResolution(sx,sy) gP.setForeground(fg) gP.setBackground(bg) gP.fill(1,1,sx,sy," ") local function cv() if cx > sx then cx,cy=1,cy+1 end if cx < 1 the...
mpl-2.0
GoogleCloudPlatform/ops-agent
confgenerator/testdata/valid/linux/logging-receiver_cassandra_custom/6ba615a1c8bcda88e6d4fd3751c2c101.lua
1
1176
function process(tag, timestamp, record) local __field_0 = (function() return record["agent.googleapis.com/log_file_path"] end)(); local __field_1 = (function() if record["logging.googleapis.com/labels"] == nil then return nil end return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"] e...
apache-2.0
wiremod/wire
lua/wire/wireshared.lua
1
33342
WireLib = WireLib or {} local pairs = pairs local setmetatable = setmetatable local rawget = rawget local next = next local IsValid = IsValid local LocalPlayer = LocalPlayer local Entity = Entity local string = string local hook = hook -- extra table functions -- Returns a noniterable version of tbl. So indexing st...
apache-2.0
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/EaseOut.lua
7
1073
-------------------------------- -- @module EaseOut -- @extend EaseRateAction -- @parent_module cc -------------------------------- -- brief Create the action with the inner action and the rate parameter.<br> -- param action The pointer of the inner action.<br> -- param rate The value of the rate parameter.<br> -- re...
mit
ddevelhanter/gamecode4
Assets/Scripts/TeapotStates.lua
44
13650
--======================================================================== -- ActorManager.lua : Defines all the states for an AI controlled teapot -- -- Part of the GameCode4 Application -- -- GameCode4 is the sample application that encapsulates much of the source code -- discussed in "Game Coding Complete - 4t...
lgpl-3.0
asqbtcupid/unreal.lua
Plugins/UnrealLua/LuaSource/util/stringutil.lua
1
2111
StringUtil = {} function StringUtil.ReplaceEscapedCharWithChar(str) return string.gsub(str, "\\n", "\n") end function StringUtil.Trim(str) return (str:gsub("^%s*(.-)%s*$", "%1")) end function StringUtil.Split(str, sep) if str == nil then return nil end local str1, str2 = string.match(str, "(.-)"..sep.."(.*)") if...
mit
prapin/premake-core
tests/base/test_override.lua
18
1484
-- -- tests/base/test_override.lua -- Verify function override support. -- Copyright (c) 2012 Jason Perkins and the Premake project -- T.premake_override = {} local suite = T.premake_override -- -- Setup -- local X = {} function suite.setup() X.testfunc = function(value) return value or "testfunc" end ...
bsd-3-clause
TeoTwawki/darkstar
scripts/globals/items/hellsteak.lua
11
1655
----------------------------------------- -- ID: 5609 -- Item: hellsteak -- Food Effect: 180Min, All Races ----------------------------------------- -- Health 20 -- Strength 6 -- Intelligence -2 -- Health Regen While Healing 2 -- hMP +1 -- Attack % 18 (cap 145) -- Ranged ATT % 18 (cap 145) -- Dragon Killer 5 ----------...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/items/salmon_sub_sandwich.lua
11
1211
----------------------------------------- -- 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/globals/status")...
gpl-3.0
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/SkeletonRenderer.lua
7
4108
-------------------------------- -- @module SkeletonRenderer -- @extend Node,BlendProtocol -- @parent_module sp -------------------------------- -- -- @function [parent=#SkeletonRenderer] setTimeScale -- @param self -- @param #float scale -- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonR...
mit
TeoTwawki/darkstar
scripts/globals/spells/dia_iii.lua
11
2729
----------------------------------------- -- Spell: Dia III -- Lowers an enemy's defense and gradually deals light elemental damage. -- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point -- Dia III value per point is '30' This is a constant set in the table 'mer...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/items/serving_of_flint_caviar.lua
11
1122
----------------------------------------- -- 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") require("scripts/...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/mobskills/fluid_toss_claret.lua
11
1096
--------------------------------------------- -- Fluid Toss (Claret) -- Description: Lobs a ball of liquid at a single target. -- Type: Ranged -- Utsusemi/Blink absorb: 1 shadow -- Range: 15 -- Applies 100hp/tick poison if it hits. --------------------------------------------- require("scripts/globals/settings")...
gpl-3.0
guo-yu/codis
ext/redis-2.8.13/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
mit
TeoTwawki/darkstar
scripts/zones/Rabao/npcs/Shupah_Mujuuk.lua
12
3349
----------------------------------- -- Area: Rabao -- NPC: Shupah Mujuuk -- Title Change NPC -- !pos 12 8 20 247 ----------------------------------- require("scripts/globals/titles") ----------------------------------- local eventId = 1011 local titleInfo = { { cost = 200, title = { ...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Windurst_Woods/npcs/Ominous_Cloud.lua
3
2829
----------------------------------- -- Area: Windurst Woods -- NPC: Ominous Cloud -- Type: Ninjutsu Toolbag Maker -- !pos -20.632 -3.939 -40.554 241 ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") ----------------------------------- function onTrade(player,npc,trade) loc...
gpl-3.0
rigeirani/mer
plugins/help.lua
27
4675
do function pairsByKeys(t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] end end return iter end...
gpl-2.0
TeoTwawki/darkstar
scripts/globals/weaponskills/shoulder_tackle.lua
10
1647
----------------------------------- -- Shoulder Tackle -- Hand-to-Hand weapon skill -- Skill Level: 40 -- Stuns target. Chance of stunning varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Aqua Gorget & Thunder Gorget. -- Aligned with the Aqua Belt & Thunder Belt. -- Element: None -- Modifiers: VIT:1...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/weaponskills/earth_crusher.lua
10
1304
----------------------------------- -- Earth Crusher -- Staff weapon skill -- Skill Level: 70 -- Delivers an area of effect earth elemental attack. Damage varies with TP. -- Aligned with the Breeze Gorget & Thunder Gorget. -- Aligned with the Breeze Belt & Thunder Belt. -- Element: Earth -- Modifiers: STR:30% INT:30% ...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/mobskills/vortex.lua
11
1053
--------------------------------------------------- -- Vortex -- Creates a vortex that damages targets in an area of effect. Additional effect: Terror --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves") ---...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Kazham/npcs/Kukupp.lua
2
5142
----------------------------------- -- Area: Kazham -- NPC: Kukupp -- Standard Info NPC ----------------------------------- require("scripts/globals/pathfind"); local path = { 43.067505, -11.000000, -177.214966, 43.583324, -11.000000, -178.104263, 44.581100, -11.000000, -178.253067, 45.459488, -11.000...
gpl-3.0
X-Coder/SBEP-Weapons
lua/entities/sf-spacemine/init.lua
1
6146
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) --include('entities/base_wire_entity/init.lua') include( 'shared.lua' ) util.PrecacheSound( "explode_9" ) util.PrecacheSound( "explode_8" ) util.PrecacheSound( "explode_5" ) function ENT:Initialize() self.Entity:SetModel( "models/Slyfo/spacemine.mdl" ) sel...
apache-2.0
TeoTwawki/darkstar
scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Heptachiond.lua
11
1771
----------------------------------- -- Area: The_Eldieme_Necropolis_[S] -- NPC: Heptachiond -- Starts and Finishes Quest: REQUIEM_FOR_THE_DEPARTED -- !pos 256 -32 20 175 ----------------------------------- require("scripts/globals/npc_util") require("scripts/globals/keyitems") require("scripts/globals/quests") -------...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Southern_San_dOria/npcs/Authere.lua
2
1494
----------------------------------- -- Area: Southern San d'Oria -- NPC: Authere -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- !pos 33 1 -31 230 ------------------------------------- require("scripts/globals/quests"); local ID = require("scripts/zones/Southern_San_dOria/IDs"); -----------------------------...
gpl-3.0
ReWrite94/iLife
client/Classes/Firework/Rocket/Schweif/cDynamicRocketSchweif.lua
2
3176
-- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 25.12.2014 -- Time: 17:40 -- Project: MTA iLife -- -- cDynamicRocketSchweif = {}; --[[ ]] -- /////////////////////////////// -- ///// New ////// -- ///// Returns: Object ////// -- /////////////////////////////// function cDynamicRocketSchweif:new(...) ...
mit
Kurios/mudlet-dev
src/mudlet-lua/lua/geyser/GeyserMapper.lua
21
1556
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- createMapper support by Vadi -- -- -- -------------------------------------- --- Represents a mapper primitive -- @class table -- @name Geyser.Mapper -- @field wrapAt Where line wrapping occurs. Default is 300 characters. Geyser.Map...
gpl-2.0
Kurios/mudlet-dev
src/old_mudlet-lua/lua/geyser/GeyserMapper.lua
21
1556
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- createMapper support by Vadi -- -- -- -------------------------------------- --- Represents a mapper primitive -- @class table -- @name Geyser.Mapper -- @field wrapAt Where line wrapping occurs. Default is 300 characters. Geyser.Map...
gpl-2.0
ReWrite94/iLife
client/Classes/Element/dxGui_old/cDxEdit.lua
2
7279
ValidEditChars = { ["a"] = "a", ["b"] = "b", ["c"] = "c", ["d"] = "d", ["e"] = "e", ["f"] = "f", ["g"] = "g", ["h"] = "h", ["i"] = "i", ["j"] = "j", ["k"] = "k", ["l"] = "l", ["m"] = "m", ["n"] = "n", ["o"] = "o", ["p"] = "p", ["q"] = "q", ["r"] = "r", ["s"] = "s", ["t"] = "t", ["u"] = "u", ["v"] ...
mit
TeoTwawki/darkstar
scripts/globals/weaponskills/chant_du_cygne.lua
10
1495
----------------------------------- -- Chant du Cygne -- Sword weapon skill -- Skill level: EMPYREAN -- Delivers a three-hit attack. Chance of params.critical varies with TP. -- Will stack with Sneak Attack. -- Element: None -- Modifiers: DEX:60% -- 100%TP 200%TP 300%TP -- ALL 2.25 -----------------------...
gpl-3.0
X-Coder/SBEP-Weapons
lua/entities/thbombm/init.lua
1
3008
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( 'shared.lua' ) util.PrecacheSound( "Buttons.snd26" ) function ENT:Initialize() self.Entity:SetModel( "models/props_phx/torpedo.mdl" ) self.Entity:SetName("Torpedo") self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPH...
apache-2.0
TeoTwawki/darkstar
scripts/globals/spells/bluemagic/feather_barrier.lua
12
1203
----------------------------------------- -- Spell: Feather Barrier -- Enhances evasion -- Spell cost: 29 MP -- Monster Type: Birds -- Spell Type: Magical (Wind) -- Blue Magic Points: 2 -- Stat Bonus: None -- Level: 56 -- Casting Time: 2 seconds -- Recast Time: 120 seconds -- Duration: 30 Seconds -- -- Combos: Resist G...
gpl-3.0
riidt/neox
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PositionFrame.lua
7
1525
-------------------------------- -- @module PositionFrame -- @extend Frame -- @parent_module ccs -------------------------------- -- @function [parent=#PositionFrame] getX -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [parent=#PositionFrame] ge...
mit
TeoTwawki/darkstar
scripts/commands/petgodmode.lua
14
2916
--------------------------------------------------------------------------------------------------- -- func: petgodmode -- desc: Toggles god mode on the player's pet, granting them several special abilities. --------------------------------------------------------------------------------------------------- cmdprops = ...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Port_Windurst/npcs/Yujuju.lua
2
2232
----------------------------------- -- Area: Port Windurst -- NPC: Yujuju -- Involved In Quest: Making Headlines -- !pos 201.523 -4.785 138.978 240 ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/globals/titles"); local ID = require("scripts...
gpl-3.0