Skip to content

Instantly share code, notes, and snippets.

'------------------------------------------------------------------------------------
' Over Complicated Printer Logon script
' By Christopher Goluch aka Rusketh (2019)
'
' USAGE:
' Set this as a user login script by group policy.
' Change the settings section to match your sites set up.
' For every printer that you have on the print server, create a new security group with the same name as the printer.
' Add users & computers to the printer groups on active directory.
' After login, network printers will be deleted and all relevant printers will be mapped.
lang:
no-reload-perms: '&cYou do not have permisson to reload comparable hoppers 2.'
reload-plugin: '&cYou have reloaded comparable hoppers 2.'
ender-target-invalid: '&cThis ender upgrade''s target is invalid.'
ender-target-world-invalid: '&cThis ender upgrade''s target is literally out of
this world.'
ender-target-linked: '&aThe upgrades target inventory has been set.'
ender-target-link-invalid: '&cThe ender upgrade must be linked to a block with an
inventory.'
ender-target-out-of-range: '&cThe ender upgrade''s tagret inventory is out of range.'
local inf = {};
inf.__index = inf;
setmetatable(inf, inf);
function inf.__eq(a,b) return a == b and a == inf; end
function inf.__lt(a,b) return b == inf; end
/*================================================= =============================
E2 Virtual Code, by Rusketh.
WARNING: THIS EXT IS VERY ABUSABLE!
================================================== ============================*/
E2Lib.RegisterExtension("virtualcode", false)
registerType("code", "vc", {},
nil,
nil,
Component:AddGeneratedFunction( "table", "...", "t", function( Operator, Compiler, Trace, ... )
local Inputs = { ... }
local Preperation = { }
local Values, Types, Look = { }, { }, { }
for I = 1, #Inputs, -1 do
local Input = Inputs[I]
if Input.FLAG == EXPADV_PREPARE or Input.FLAG == EXPADV_INLINEPREPARE then
Preperation[#Preperation + 1] = Input.Prepare
local ply = LocalPlayer
AddCSLuaFile()
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "CCM"
ENT.Author = "Wire King"
ENT.Spawnable = true
ENT.AdminSpawnable = false
for ( number i = 1; 10 *6; 1 ) {
print( i )
}
Compiles To:
return function( Context )
setfenv( 1, Context.Enviroment )
for i = 1, (10 * 6), 2 do