Skip to content

Instantly share code, notes, and snippets.

@StinkyTwitch
StinkyTwitch / Warlock-Destro-PvP.lua
Created April 17, 2017 21:14
OLD FH Warlock Destro PvP
-- Firehack script for destruction warlocks
-- Created: 7/21/2016
-- Constants
UPDATE_INTERVAL = 0.1 -- in seconds
LAST_UPDATE = GetTime()
InitFrame = CreateFrame("Frame")
InitFrame:SetScript("OnUpdate", InitFrameUpdate)
@StinkyTwitch
StinkyTwitch / Druid-Feral-PvP.lua
Last active May 12, 2017 11:36
OLD FH Feral PvP Script
--Druid Feral Rotation (PvP)--
--Created By Mhswarior--
-- Constants--
UPDATE_INTERVAL = math.random(.2,.4) -- in seconds
LAST_UPDATE = GetTime()
EmpoweredRip = false
EmpoweredRake = false
InitFrame = CreateFrame("Frame")
@StinkyTwitch
StinkyTwitch / splash.lua
Last active July 25, 2018 16:56
Splash Logo Code
--[[--------------------------------------------------------------------------------------------
-- SPLASH LOGO
--------------------------------------------------------------------------------------------]]--
local function onUpdate(RotAgentSplash,elapsed)
if RotAgentSplash.time < GetTime() - 15.0 then
if RotAgentSplash:GetAlpha() then
RotAgentSplash:Hide()
else
RotAgentSplash:SetAlpha(RotAgentSplash:GetAlpha() - .05)
end
@StinkyTwitch
StinkyTwitch / objecthealth.lua
Created February 19, 2015 17:59
Get Objects Health using Descriptor
local _,_,_,_,_, target_id,_ = strsplit("-",UnitGUID("target"))
local object_pointer = nil
local total_objects = ObjectCount()
for i=1, total_objects do
local _, object = pcall(ObjectWithIndex, i)
local _, object_exists = pcall(ObjectExists, object)
if object_exists then
@StinkyTwitch
StinkyTwitch / PE Extended.lua
Last active August 29, 2015 14:15
Using dynamicEval with custom PE registers
ProbablyEngine.condition.register("power.regen", function(target)
return select(2, GetPowerRegen(target))
end)
ProbablyEngine.condition.register("gcd", function(target)
local gcd = (1.5/GetHaste(target))
if gcd < 1 then
return 1
else
return gcd
@StinkyTwitch
StinkyTwitch / Probably_RotAgent.lua
Last active August 29, 2015 14:15
RotAgent version 2.0
--[[
Probably_RotAgent.lua
Rotation Agent (Probably_RotAgent) License
This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International
License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/.
]]
--[[------------------------------------------------------------------------------------------------
@StinkyTwitch
StinkyTwitch / spell.regen.lua
Created February 16, 2015 22:04
Spell Regen
-- Spell Regen
ProbablyEngine.condition.register("spell.regen", function(target, spell)
local name, rank, icon, base_cast_ime, min_range, max_range = GetSpellInfo(spell)
local cur_power = UnitPower(target)
local cur_haste = UnitSpellHaste(target)
local cur_regen = select(2, GetPowerRegen(target))
local cast_time = (base_cast_time / ((cur_haste / 100) + 1))
local cast_regen = cast_time * cur_regen
@StinkyTwitch
StinkyTwitch / GetSpellCooldown.lua
Created February 15, 2015 22:35
Hack AddOn Example Code
function PrintDuration(spell)
local start, duration, enabled = GetSpellCooldown(spell)
if not start then return false end
if start ~= 0 then
return (start + duration - GetTime())
end
return 0
end
C_Timer.NewTicker(0.1, (function() print(PrintDuration("Fists of Fury")) end), nil)
@StinkyTwitch
StinkyTwitch / firehack.lua
Last active August 29, 2015 14:14
Modified UnitsAroundUnit firehack.lua
-- ProbablyEngine Rotations
-- Released under modified BSD, see attached LICENSE.
-- Functions that require FireHack
local SpecialTargets = {
-- TRAINING DUMMIES
31144, -- Training Dummy - Lvl 80
31146, -- Raider's Training Dummy - Lvl ??
32541, -- Initiate's Training Dummy - Lvl 55 (Scarlet Enclave)
@StinkyTwitch
StinkyTwitch / specialtargets.lua
Created February 4, 2015 16:25
SpecialTargets.lua
--[[------------------------------------------------------------------------------------------------
GLOBAL TABLE OF SPECIAL CASE TARGETS
* Credit: MrTheSoulz for the framework
--------------------------------------------------------------------------------------------------]]
SpecialTargets = {
-- TRAINING DUMMIES
31144, -- Training Dummy - Lvl 80
31146, -- Raider's Training Dummy - Lvl ??
32541, -- Initiate's Training Dummy - Lvl 55 (Scarlet Enclave)
32542, -- Disciple's Training Dummy - Lvl 65