Skip to content

Instantly share code, notes, and snippets.

View DelusionalLogic's full-sized avatar

Jesper Jensen DelusionalLogic

View GitHub Profile
@DelusionalLogic
DelusionalLogic / target_selector.lua
Created July 3, 2012 00:52
Target Selector UPGRADE v0.2
TARGET_LOW_HP = 1
TARGET_NEAR = 2
TARGET_FAR = 3
DAMAGE_MAGIC = 1
DAMAGE_PHYSICAL = 2
targetMode=" "
mouseRange = 400 -- distance from mouse the target must be to attack if targetMouse is true.
targetMouse = false --default
TargetSelector = {}
player = GetMyHero()
--[[
Darius Ownage
v1.1
written by Weee
Modified by Delusional Logic
]]
--[[ Config ]]
HK = 32 -- Hotkey for perfect Q harass (default: spacebar)
cHK = 67 -- Hotkey for perfect E (Key C)
@DelusionalLogic
DelusionalLogic / mec.lua
Created July 3, 2012 13:38
Minimum enclosing circle algorithm
-- ===========================
-- Minimum enclosing circle algorithm
-- ---------------------------
-- Much of this code was inspired from the ruby implementation at:
-- [http://www.dseifert.net/code/mec/source.html]
-- ===========================
-- ===========================
-- Copy the array portion of the table.
-- ===========================
@DelusionalLogic
DelusionalLogic / circle.lua
Created July 3, 2012 14:50
Veigarsuperfunhouse
Circle = {
-- ===========================
-- Creates a new circle of the specified center and radius.
-- ===========================
New = function(self)
local c = {}
setmetatable(c, {__index = self})
return c
end,
--[[
AutoAttacker! + autoCrit 2.0 mod 1
v0.1
AutoAttacker! written by Weee
autoCrit 2.0 mod 1 written by PedobearIGER + mod by Weee
Smash "X" to win! Allows you to attack-move weakest champion in desireable range.
Hold "C" for autoCrit. On Twisted Fate hold space.
]]
--[[ RAPEKTON!!!!!!!!!!!!!!!!!!!!
Script Action 1 = Autoattack-Cull the Meek then Autoattack-Ruthless Predator
Script Action 2 = Autoattack-Ruthless Predator then Autoattack-Cull the Meek ]]
--[[ Config ]]
if player.charName == "Renekton" then
triggerKey1 = 88 -- hotkey: x or X
triggerKey2 = 90-- hotkey: z or Z
--[[ Code ]]
player = GetMyHero()
function altDoFile(name)
-- User: Delusional Logic
-- Date: 05-07-12
-- Time: 21:44
function altDoFile(name)
dofile(debug.getinfo(1).source:sub(debug.getinfo(1).source:find(".*\\")):sub(2)..name)
end
altDoFile("libs/Guilib/utils.lua")
altDoFile("libs/Guilib/window.lua")
@DelusionalLogic
DelusionalLogic / commandStopper.lua
Created July 13, 2012 21:46
Stop's commands from being sent
-- User: Delusional Logic
-- Date: 13-07-12
-- Time: 23:38
do
local prefixes = {'.'}
function chatHandler(msg)
local preLen = startsWith(msg, prefixes)
// ==UserScript==
// @name Grooveshark to TDC PLAY
// @namespace GroovePlay
// @match *grooveshark.*
// @require http://code.jquery.com/jquery-latest.min.js
// @author Delusional Logic
// @description This script aims to implement TDC play playlists into grooveshark.
// ==/UserScript==
var playUrl = "http://musik.tdconline.dk/servlets/2452306090224Dispatch/19/jspforward?file=.%2Findex.jsp&page=search&searchquery=";
@DelusionalLogic
DelusionalLogic / HexParse.lua
Created September 12, 2012 21:04
Hex Parse
do
local set =
{
A = 10,
B = 11,
C = 12,
D = 13,
E = 14,
F = 15,
}